ace: Fix EMBEDDED check
parent
50929fe7f7
commit
8ae8710a14
|
@ -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.');
|
||||||
|
|
Loading…
Reference in New Issue