make css assets static links

This commit is contained in:
webzwo0i 2021-03-01 01:25:11 +01:00
parent 99847027fd
commit 1d9f8cf760

View file

@ -162,11 +162,11 @@ const Ace2Editor = function () {
};
const includedCSS = [
'../static/css/iframe_editor.css',
`../static/css/pad.css?v=${clientVars.randomVersionString}`,
'http://localhost:9001/static/css/iframe_editor.css',
`http://localhost:9001/static/css/pad.css?v=${clientVars.randomVersionString}`,
// Allow urls to external CSS - http(s):// and //some/path.css
...hooks.callAll('aceEditorCSS').map((p) => /\/\//.test(p) ? p : `../static/plugins/${p}`),
`../static/skins/${clientVars.skinName}/pad.css?v=${clientVars.randomVersionString}`,
...hooks.callAll('aceEditorCSS').map((p) => /\/\//.test(p) ? p : `http://localhost:9001/static/plugins/${p}`),
`http://localhost:9001/static/skins/${clientVars.skinName}/pad.css?v=${clientVars.randomVersionString}`,
];
const outerFrame = document.createElement('iframe');