Browse Source

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

Tobias Reich 9 years ago
parent
commit
a7192d1831
2 changed files with 4 additions and 1 deletions
  1. 0 0
      dist/main.js
  2. 4 1
      src/scripts/lychee.js

File diff suppressed because it is too large
+ 0 - 0
dist/main.js


+ 4 - 1
src/scripts/lychee.js

@@ -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;
 
 }

Some files were not shown because too many files changed in this diff