mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
Make exception case for require kernel obvious.
This commit is contained in:
parent
02c22d7b89
commit
6e796eb5fb
1 changed files with 3 additions and 5 deletions
|
@ -168,11 +168,9 @@ require.setGlobalKeyPath("require");\n\
|
||||||
buffer.push(KERNEL_BOOT);
|
buffer.push(KERNEL_BOOT);
|
||||||
buffer.push('<\/script>');
|
buffer.push('<\/script>');
|
||||||
} else {
|
} else {
|
||||||
file = KERNEL_SOURCE;
|
// Remotely src'd script tag will not work in IE; it must be embedded, so
|
||||||
buffer.push('<script type="application/javascript" src="' + KERNEL_SOURCE + '"><\/script>');
|
// throw an error if it is not.
|
||||||
buffer.push('<script type="text/javascript">');
|
throw new Error("Require script could not be embedded.");
|
||||||
buffer.push(KERNEL_BOOT);
|
|
||||||
buffer.push('<\/script>');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function pushScriptsTo(buffer) {
|
function pushScriptsTo(buffer) {
|
||||||
|
|
Loading…
Reference in a new issue