Browse Source

remove emoticons_map.size()

Andrew Dolgov 5 years ago
parent
commit
2c830c3e4a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      js/tt-irc.js

+ 1 - 1
js/tt-irc.js

@@ -2091,7 +2091,7 @@ function rewrite_emoticons(str) {
 		if (!str) return "";
 		if (get_cookie('ttirc_emoticons') == "false") return str;
 
-		if (emoticons_map && emoticons_map.size() > 0) {
+		if (emoticons_map) {
 			for (key in emoticons_map) {
 				str = str.replace(
 						new RegExp("" + RegExp.escape(key) + "", "g"),