diff --git a/content/apply.js b/content/apply.js index 21bac289..0ff751a6 100644 --- a/content/apply.js +++ b/content/apply.js @@ -462,10 +462,12 @@ const APPLY = (() => { transition: none !important; } `) - setTimeout(() => { - removeStyle({id: 0}); - document.documentElement.classList.remove(className); - }); + .then(() => { + setTimeout(() => { + removeStyle({id: 0}); + document.documentElement.classList.remove(className); + }); + }); } function getStyleId(el) {