Fixed loading CSS with null or empty URLs

This commit is contained in:
HighImKevin committed 2025-11-06 07:05:30 -05:00
1 parent 4c6d10d010
commit a4c492728e
1 file changed
+5
+5
View File
@@ -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