quick fix for special page themes

This commit is contained in:
uwaa 2025-01-10 08:55:16 +00:00
parent 5718d09d74
commit 5a5098ad11

13
rot.js
View file

@ -135,12 +135,15 @@ waitUntil("#music-mute").then((box) => {
//Theme application
function applySpecialTheme() {
let pageMusic = document.querySelector('meta[name="pageMusic"]')?.content || document.getElementById("pageMusic")?.getAttribute("href");
setMusic(pageMusic);
playMusic();
setTimeout(() => {
let pageMusic = document.querySelector('meta[name="pageMusic"]')?.content || document.getElementById("pageMusic")?.getAttribute("href");
console.log(pageMusic);
setMusic(pageMusic);
playMusic();
let pageImage = document.querySelector('meta[name="pageImage"]')?.content || document.getElementById("pageImage")?.getAttribute("href");
setImage(pageImage);
let pageImage = document.querySelector('meta[name="pageImage"]')?.content || document.getElementById("pageImage")?.getAttribute("href");
setImage(pageImage);
}, 1000);
}
function applyUserTheme() {