fix extensions reset

This commit is contained in:
Vladimir Mandic
2023-07-20 09:52:18 -04:00
parent 57d1d3ed16
commit a3ab302f51
10 changed files with 54 additions and 33 deletions
+2 -2
View File
@@ -4,10 +4,10 @@ async function createSplash() {
const splash = `
<div id="splash" class="splash" style="background: ${dark ? 'black' : 'white'}">
<div class="loading"><div class="loader"></div></div>
<div class="splash-img" alt="logo" style="background-image: url(file=html/logo-bg-${dark ? 'dark' : 'light'}.jpg), url(file=html/logo-bg-${num}.jpg); background-blend-mode: ${dark ? 'color-burn' : 'color-dodge'}"></div>
<div class="splash-img" alt="logo" style="background-image: url(file=html/logo-bg-${dark ? 'dark' : 'light'}.jpg), url(file=html/logo-bg-${num}.jpg); background-blend-mode: ${dark ? 'darken' : 'lighten'}"></div>
</div>`;
document.body.insertAdjacentHTML('beforeend', splash);
console.log('createSplash', dark);
console.log('createSplash', { 'system-theme': dark ? 'dark' : 'light' });
}
async function removeSplash() { // called at the end of setHints