From 36f39a6e13d3713dd45f0def014ee2403d0b24f9 Mon Sep 17 00:00:00 2001 From: muxator Date: Mon, 27 Aug 2018 02:18:34 +0200 Subject: [PATCH] ace.js: remove template literals to keep IE 11 compatibility Files in "src/static" are executed on the client: do not break browser compatibility because of syntactic sugar. Introduced in 9c990ab08a51. --- src/static/js/ace.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/static/js/ace.js b/src/static/js/ace.js index 2f9c1e6d..bbf83c0e 100644 --- a/src/static/js/ace.js +++ b/src/static/js/ace.js @@ -230,7 +230,7 @@ function Ace2Editor() // disableCustomScriptsAndStyles can be used to disable loading of custom scripts if(!clientVars.disableCustomScriptsAndStyles){ $$INCLUDE_CSS("../static/css/pad.css"); - $$INCLUDE_CSS(`../static/skins/${clientVars.skinName}/pad.css`); + $$INCLUDE_CSS("../static/skins/" + clientVars.skinName + "/pad.css"); } var additionalCSS = _(hooks.callAll("aceEditorCSS")).map(function(path){ @@ -314,7 +314,7 @@ window.onload = function () {\n\ var $$INCLUDE_CSS = function(filename) {includedCSS.push(filename)}; $$INCLUDE_CSS("../static/css/iframe_editor.css"); $$INCLUDE_CSS("../static/css/pad.css"); - $$INCLUDE_CSS(`../static/skins/${clientVars.skinName}/pad.css`); + $$INCLUDE_CSS("../static/skins/" + clientVars.skinName + "/pad.css"); var additionalCSS = _(hooks.callAll("aceEditorCSS")).map(function(path){