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 9c990ab08a.
pull/3476/head
muxator 2018-08-27 02:18:34 +02:00
parent 7f7efa22b7
commit 36f39a6e13
1 changed files with 2 additions and 2 deletions

View File

@ -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){