diff options
author | Chad Weider <cweider@oofn.net> | 2012-09-03 14:41:26 -0700 |
---|---|---|
committer | Chad Weider <cweider@oofn.net> | 2012-09-03 14:41:26 -0700 |
commit | 6e796eb5fbaf7c842ecdecabd48f8065eaec1084 (patch) | |
tree | ddd0f6faafffaf2ca380cc9c7cdb31e99134846f /src/static/js/ace.js | |
parent | 02c22d7b891272cc9d36a5822a19addf4e1f6eee (diff) | |
download | etherpad-lite-6e796eb5fbaf7c842ecdecabd48f8065eaec1084.zip |
Make exception case for require kernel obvious.
Diffstat (limited to 'src/static/js/ace.js')
-rw-r--r-- | src/static/js/ace.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/static/js/ace.js b/src/static/js/ace.js index 600b6136..d7414c17 100644 --- a/src/static/js/ace.js +++ b/src/static/js/ace.js @@ -168,11 +168,9 @@ require.setGlobalKeyPath("require");\n\ buffer.push(KERNEL_BOOT); buffer.push('<\/script>'); } else { - file = KERNEL_SOURCE; - buffer.push('<script type="application/javascript" src="' + KERNEL_SOURCE + '"><\/script>'); - buffer.push('<script type="text/javascript">'); - buffer.push(KERNEL_BOOT); - buffer.push('<\/script>'); + // 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 script could not be embedded."); } } function pushScriptsTo(buffer) { |