FIX: Backwards compatibility for plugins who sanitize

This commit is contained in:
Robin Ward 2016-07-05 11:07:59 -04:00
parent 6d7e8bd68b
commit 3d21805022
1 changed files with 4 additions and 0 deletions

View File

@ -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) {