From 756fafe2639e16f3ba71e10736c523f51f220d5d Mon Sep 17 00:00:00 2001 From: narcolepticinsomniac Date: Tue, 29 Jan 2019 23:30:37 -0500 Subject: [PATCH] Ensure applySections is complete --- content/apply.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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) {