Spaces:
Running
Running
File size: 642 Bytes
e3d939d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | /**
* Early workspace wallpaper initialization for skeleton screen.
* Encapsulated in an external static script to eliminate inline scripts
* and uphold a strict Content Security Policy (no 'unsafe-inline' in script-src).
*/
(function () {
try {
var bgUrl = localStorage.getItem('desktopWallpaperUrl');
if (!bgUrl || bgUrl.indexOf('lh3.googleusercontent.com') !== -1) {
bgUrl = '/wallpapers/default.webp';
}
var bgEl = document.getElementById('skel-bg');
if (bgEl) {
bgEl.style.backgroundImage = "url('" + bgUrl + "')";
}
} catch {
// Graceful fallback if localStorage is unavailable
}
})();
|