From 8ae8710a1419b59572f889015a58f1fc1084baca Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Tue, 9 Feb 2021 16:55:41 -0500 Subject: [PATCH] ace: Fix EMBEDDED check --- src/static/js/ace.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/static/js/ace.js b/src/static/js/ace.js index c621566d9..e648df07e 100644 --- a/src/static/js/ace.js +++ b/src/static/js/ace.js @@ -197,7 +197,7 @@ const Ace2Editor = function () { pushStyleTagsFor(iframeHTML, includedCSS); - if (!Ace2Editor.EMBEDED && Ace2Editor.EMBEDED[KERNEL_SOURCE]) { + if (!Ace2Editor.EMBEDED || !Ace2Editor.EMBEDED[KERNEL_SOURCE]) { // Remotely src'd script tag will not work in IE; it must be embedded, so // throw an error if it is not. throw new Error('Require kernel could not be found.');