ace: Delete unnecessary IIFE
parent
e38a3c5fe2
commit
dc9fda3556
|
@ -162,7 +162,6 @@ const Ace2Editor = function () {
|
|||
doneFunc();
|
||||
};
|
||||
|
||||
(() => {
|
||||
const doctype = '<!doctype html>';
|
||||
|
||||
const iframeHTML = [];
|
||||
|
@ -195,9 +194,6 @@ const Ace2Editor = function () {
|
|||
|
||||
pushStyleTagsFor(iframeHTML, includedCSS);
|
||||
iframeHTML.push(`<script type="text/javascript" src="../static/js/require-kernel.js?v=${clientVars.randomVersionString}"></script>`);
|
||||
// fill the cache
|
||||
iframeHTML.push(`<script type="text/javascript" src="../javascripts/lib/ep_etherpad-lite/static/js/ace2_inner.js?callback=require.define&v=${clientVars.randomVersionString}"></script>`);
|
||||
iframeHTML.push(`<script type="text/javascript" src="../javascripts/lib/ep_etherpad-lite/static/js/ace2_common.js?callback=require.define&v=${clientVars.randomVersionString}"></script>`);
|
||||
|
||||
iframeHTML.push(scriptTag(`(() => {
|
||||
const require = window.require;
|
||||
|
@ -299,7 +295,6 @@ const Ace2Editor = function () {
|
|||
editorDocument.open();
|
||||
editorDocument.write(outerHTML.join(''));
|
||||
editorDocument.close();
|
||||
})();
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue