ace: Delete unused `clientVars.disableCustomScriptsAndStyles`

pull/4903/head
Richard Hansen 2021-02-26 01:40:58 -05:00 committed by John McLear
parent d84447290e
commit 54df7f3728
1 changed files with 1 additions and 6 deletions

View File

@ -174,12 +174,7 @@ const Ace2Editor = function () {
let includedCSS = [];
let $$INCLUDE_CSS = (filename) => { includedCSS.push(filename); };
$$INCLUDE_CSS('../static/css/iframe_editor.css');
// disableCustomScriptsAndStyles can be used to disable loading of custom scripts
if (!clientVars.disableCustomScriptsAndStyles) {
$$INCLUDE_CSS(`../static/css/pad.css?v=${clientVars.randomVersionString}`);
}
let additionalCSS = hooks.callAll('aceEditorCSS').map((path) => {
if (path.match(/\/\//)) { // Allow urls to external CSS - http(s):// and //some/path.css
return path;