ace: Fix EMBEDDED check

pull/4765/head
Richard Hansen 2021-02-09 16:55:41 -05:00 committed by John McLear
parent 50929fe7f7
commit 8ae8710a14
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ const Ace2Editor = function () {
pushStyleTagsFor(iframeHTML, includedCSS); 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 // Remotely src'd script tag will not work in IE; it must be embedded, so
// throw an error if it is not. // throw an error if it is not.
throw new Error('Require kernel could not be found.'); throw new Error('Require kernel could not be found.');