Skip to content

Commit

Permalink
change: append on activate, remove on deactivate
Browse files Browse the repository at this point in the history
  • Loading branch information
khanhas committed Jun 27, 2021
1 parent 7b923ae commit 82be814
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Extensions/fullAppDisplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,7 @@ body.video-full-screen.video-full-screen--hide-ui {
cover.classList.remove("fad-background-fade")
}
document.body.classList.add(...classes)
document.body.append(style, container)
}

function deactivate() {
Expand All @@ -493,6 +494,8 @@ body.video-full-screen.video-full-screen--hide-ui {
document.exitFullscreen()
}
document.body.classList.remove(...classes)
style.remove()
container.remove()
}

function getConfig() {
Expand All @@ -512,8 +515,6 @@ body.video-full-screen.video-full-screen--hide-ui {
Spicetify.LocalStorage.set("full-app-display-config", JSON.stringify(CONFIG))
}

document.body.append(style, container)

function newMenuItem(name, key) {
const container = document.createElement("div");
container.innerHTML = `
Expand Down

0 comments on commit 82be814

Please sign in to comment.