mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-14 00:50:14 -04:00
FIX: add CDN support to emoji preview and toolbar
This commit is contained in:
parent
993d60f9fb
commit
51955e6e78
1 changed files with 4 additions and 0 deletions
|
@ -61,6 +61,10 @@ var urlFor = function(code) {
|
|||
url = Discourse.getURL('/plugins/emoji/images/' + code + '.png');
|
||||
}
|
||||
|
||||
if(url && url[0] !== 'h' && Discourse.CDN) {
|
||||
url = Discourse.CDN + url;
|
||||
}
|
||||
|
||||
return url;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue