ace: Delete unnecessary IIFE

ace-patch-works-in-chromium
Richard Hansen 2021-02-26 01:37:33 -05:00 committed by webzwo0i
parent e38a3c5fe2
commit dc9fda3556
1 changed files with 121 additions and 126 deletions

View File

@ -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();
})();
};
};