mirror of
https://github.com/ranaldsgift/KefinTweaks.git
synced 2026-11-05 15:52:47 +01:00
Fixed loading CSS with null or empty URLs
This commit is contained in:
1 parent
4c6d10d010
commit
a4c492728e
1 file changed
+5
@@ -1465,6 +1465,11 @@
|
||||
LOG(`Skin CSS already loaded: ${url}`);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!url || url === '') {
|
||||
LOG(`Invalid skin CSS URL: ${url}, skipping`);
|
||||
return;
|
||||
}
|
||||
|
||||
const link = document.createElement('link');
|
||||
link.id = `cssSkin-${Date.now()}-${Math.random()}`; // Unique ID to prevent conflicts
|
||||
|
||||
Reference in new issue
Block a user