mirror of
https://github.com/discourse/discourse.git
synced 2025-03-24 18:35:37 +08:00
FIX: add CDN support to emoji preview and toolbar
This commit is contained in:
parent
993d60f9fb
commit
51955e6e78
@ -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…
x
Reference in New Issue
Block a user