make css assets static links

ace-patch-works-in-chromium
webzwo0i 2021-03-01 01:25:11 +01:00
parent 99847027fd
commit 1d9f8cf760
1 changed files with 4 additions and 4 deletions

View File

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