mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 11:20:57 -06:00
FIX: Backwards compatibility for plugins who sanitize
This commit is contained in:
parent
6d7e8bd68b
commit
3d21805022
@ -22,6 +22,10 @@ function loadWithTag(path, cb) {
|
||||
}
|
||||
|
||||
export default function loadScript(url, opts) {
|
||||
|
||||
// TODO: Remove this once plugins have been updated not to use it:
|
||||
if (url === "defer/html-sanitizer-bundle") { return Ember.RSVP.Promise.resolve(); }
|
||||
|
||||
opts = opts || {};
|
||||
|
||||
return new Ember.RSVP.Promise(function(resolve) {
|
||||
|
Loading…
Reference in New Issue
Block a user