From 3d2180502222377b69be88dcc1e9e90b1e0bf1ae Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Tue, 5 Jul 2016 11:07:59 -0400 Subject: [PATCH] FIX: Backwards compatibility for plugins who sanitize --- app/assets/javascripts/discourse/lib/load-script.js.es6 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/assets/javascripts/discourse/lib/load-script.js.es6 b/app/assets/javascripts/discourse/lib/load-script.js.es6 index b562a11545a..4edc9a452ac 100644 --- a/app/assets/javascripts/discourse/lib/load-script.js.es6 +++ b/app/assets/javascripts/discourse/lib/load-script.js.es6 @@ -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) {