Fixed "Removing last Tag from photo not possible in Firefox #269"

This commit is contained in:
Tobias Reich 2015-05-14 23:25:45 +02:00
parent 275e653b1a
commit a7192d1831
2 changed files with 4 additions and 1 deletions

BIN
dist/main.js vendored

Binary file not shown.

View File

@ -384,10 +384,13 @@ lychee.loadDropbox = function(callback) {
}
lychee.removeHTML = function(html) {
lychee.removeHTML = function(html = '') {
if (html==='') return html;
var tmp = document.createElement('DIV');
tmp.innerHTML = html;
return tmp.textContent || tmp.innerText;
}