quick fix for special page themes
This commit is contained in:
parent
5718d09d74
commit
5a5098ad11
1 changed files with 9 additions and 6 deletions
3
rot.js
3
rot.js
|
@ -135,12 +135,15 @@ waitUntil("#music-mute").then((box) => {
|
|||
|
||||
//Theme application
|
||||
function applySpecialTheme() {
|
||||
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);
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
function applyUserTheme() {
|
||||
|
|
Loading…
Reference in a new issue