This commit is contained in:
the-djmaze 2023-01-19 16:46:39 +01:00
parent dba125ad59
commit 79510eb79c
10 changed files with 24 additions and 26 deletions

View file

@ -1,7 +1,7 @@
import ko from 'ko';
import { $htmlCL, elementById, leftPanelDisabled, Settings, SettingsGet } from 'Common/Globals';
import { isArray, arrayLength } from 'Common/Utils';
import { serverRequestRaw } from 'Common/Links';
import { cssLink, serverRequestRaw } from 'Common/Links';
import { SaveSettingStatus } from 'Common/Enums';
let __themeTimer = 0;
@ -41,7 +41,7 @@ export const
clearTimer = () => {
__themeTimer = setTimeout(() => themeTrigger(SaveSettingStatus.Idle), 1000);
},
url = themeStyle.dataset.href.replace(/(Admin|User)\/-\/[^/]+\//, '$1/-/' + value + '/') + 'Json/';
url = cssLink(value);
clearTimeout(__themeTimer);