mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
FIX: When emoji was disabled you could get a JS error in preview
This commit is contained in:
parent
4487d6a4c2
commit
d472b4e10a
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@
|
|||
} else {
|
||||
var replacement = translations[t];
|
||||
Discourse.Dialect.inlineReplace(t, function (token, match, prev) {
|
||||
if (!Discourse.SiteSettings.enable_emoji) { return; }
|
||||
if (!Discourse.SiteSettings.enable_emoji) { return token; }
|
||||
return checkPrev(prev) ? imageFor(replacement) : token;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue