Browse Source

delete console.log() in htmlFormatMsg() for empty input string

readme-update
Simon Grim 9 years ago
parent
commit
17bfce7c43
  1. 4
      js/twister_formatpost.js

4
js/twister_formatpost.js

@ -573,10 +573,8 @@ function htmlFormatMsg(msg, opt) { @@ -573,10 +573,8 @@ function htmlFormatMsg(msg, opt) {
return msg.str;
}
if (!msg) {
console.warn('htmlFormatMsg() error: input string is empty');
if (!msg)
return {html: '', mentions: []};
}
if (opt && opt.markout)
var markoutOpt = opt.markout;

Loading…
Cancel
Save