mirror of
https://github.com/ranaldsgift/KefinTweaks.git
synced 2026-11-05 15:52:47 +01:00
Ensure Skin urls load from the resolved root url
This commit is contained in:
1 parent
d24379a571
commit
ed24b6989c
1 file changed
+6
-1
@@ -11,7 +11,12 @@
|
||||
// ============================================================================
|
||||
|
||||
const getKefinTweaksRoot = () => {
|
||||
return window.KefinTweaksConfig?.kefinTweaksRoot || 'https://ranaldsgift.github.io/KefinTweaks/';
|
||||
const cfg = window.KefinTweaksConfig || {};
|
||||
// Prefer pinned tip (commit/tag); fall back to symbolic root (e.g. @latest)
|
||||
let root = String(cfg.kefinTweaksRootResolved || cfg.kefinTweaksRoot || '').trim();
|
||||
if (!root) root = 'https://ranaldsgift.github.io/KefinTweaks/';
|
||||
if (root.charAt(root.length - 1) !== '/') root += '/';
|
||||
return root;
|
||||
}
|
||||
|
||||
const KEFIN_TWEAKS_DEFAULT_SKINS_CONFIG = {
|
||||
|
||||
Reference in new issue
Block a user