mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
ace: Delete unused $$INCLUDE_CSS
logic
Nothing "compiles" the file by replacing `$$INCLUDE_CSS()` calls anymore so it is safe to simplify the code.
This commit is contained in:
parent
d5130d0d5a
commit
e1415efa03
1 changed files with 11 additions and 16 deletions
|
@ -162,22 +162,17 @@ const Ace2Editor = function () {
|
||||||
doneFunc();
|
doneFunc();
|
||||||
};
|
};
|
||||||
|
|
||||||
// calls to these functions ($$INCLUDE_...) are replaced when this file is processed
|
const includedCSS = [
|
||||||
// and compressed, putting the compressed code from the named file directly into the
|
'../static/css/iframe_editor.css',
|
||||||
// source here.
|
`../static/css/pad.css?v=${clientVars.randomVersionString}`,
|
||||||
// these lines must conform to a specific format because they are passed by the build script:
|
...hooks.callAll('aceEditorCSS').map((path) => {
|
||||||
const includedCSS = [];
|
if (path.match(/\/\//)) { // Allow urls to external CSS - http(s):// and //some/path.css
|
||||||
const $$INCLUDE_CSS = (filename) => { includedCSS.push(filename); };
|
return path;
|
||||||
$$INCLUDE_CSS('../static/css/iframe_editor.css');
|
}
|
||||||
$$INCLUDE_CSS(`../static/css/pad.css?v=${clientVars.randomVersionString}`);
|
return `../static/plugins/${path}`;
|
||||||
includedCSS.push(...hooks.callAll('aceEditorCSS').map((path) => {
|
}),
|
||||||
if (path.match(/\/\//)) { // Allow urls to external CSS - http(s):// and //some/path.css
|
`../static/skins/${clientVars.skinName}/pad.css?v=${clientVars.randomVersionString}`,
|
||||||
return path;
|
];
|
||||||
}
|
|
||||||
return `../static/plugins/${path}`;
|
|
||||||
}));
|
|
||||||
$$INCLUDE_CSS(
|
|
||||||
`../static/skins/${clientVars.skinName}/pad.css?v=${clientVars.randomVersionString}`);
|
|
||||||
|
|
||||||
const doctype = '<!doctype html>';
|
const doctype = '<!doctype html>';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue