From 55f02c1246a5d7afb9302b5ce05e7f795624a2b4 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Fri, 26 Feb 2021 01:40:58 -0500 Subject: [PATCH] ace: Delete unused `clientVars.disableCustomScriptsAndStyles` --- src/static/js/ace.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/static/js/ace.js b/src/static/js/ace.js index 948f0062c..42a61839e 100644 --- a/src/static/js/ace.js +++ b/src/static/js/ace.js @@ -176,12 +176,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}`); - } - + $$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;