mirror of
https://github.com/ranaldsgift/KefinTweaks.git
synced 2026-11-05 15:52:47 +01:00
Update Skin Manager optional includes
This commit is contained in:
1 parent
5b5cb85ef1
commit
2bb76f6107
7 files changed
+106
-29
No files matched your search
+7
-10
@@ -2862,17 +2862,14 @@ window.KefinTweaksConfig = ${JSON.stringify(configToBackup, null, 2)};`;
|
||||
requestAnimationFrame(async () => {
|
||||
const cssUrls = await getSkinUrlsForCurrentVersion(skin);
|
||||
|
||||
if (!cssUrls || cssUrls.length === 0) {
|
||||
LOG(`No CSS URLs found for skin: ${skin.name}`);
|
||||
return;
|
||||
if (cssUrls && cssUrls.length > 0) {
|
||||
LOG(`Loading skin with ${cssUrls.length} CSS files: ${skin.name}`);
|
||||
cssUrls.forEach(url => {
|
||||
if (url) { // Skip null/empty URLs
|
||||
loadSkinCSS(url, skin.name);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
LOG(`Loading skin with ${cssUrls.length} CSS files: ${skin.name}`);
|
||||
cssUrls.forEach(url => {
|
||||
if (url) { // Skip null/empty URLs
|
||||
loadSkinCSS(url, skin.name);
|
||||
}
|
||||
});
|
||||
|
||||
// Load optional includes for this skin
|
||||
loadOptionalIncludes(skin);
|
||||
|
||||
Reference in new issue
Block a user