From 82be814a442d397125faab54f02d7159e3345602 Mon Sep 17 00:00:00 2001 From: khanhas Date: Mon, 28 Jun 2021 01:00:12 +1000 Subject: [PATCH] change: append on activate, remove on deactivate --- Extensions/fullAppDisplay.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Extensions/fullAppDisplay.js b/Extensions/fullAppDisplay.js index 37c5b361ed..c9e892a37a 100644 --- a/Extensions/fullAppDisplay.js +++ b/Extensions/fullAppDisplay.js @@ -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() { @@ -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() { @@ -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 = `