From b18d062d51e6351c6432b2bfb7cfe9e50206b2f3 Mon Sep 17 00:00:00 2001 From: narcolepticinsomniac Date: Tue, 29 Jan 2019 11:14:07 -0500 Subject: [PATCH] Use setTimeout for transition patch Fixes #648 (#656) --- content/apply.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/content/apply.js b/content/apply.js index 24b99830..21bac289 100644 --- a/content/apply.js +++ b/content/apply.js @@ -462,13 +462,10 @@ const APPLY = (() => { transition: none !important; } `) - .then(() => { - // repaint - // eslint-disable-next-line no-unused-expressions - document.documentElement.offsetWidth; - removeStyle({id: 0}); - document.documentElement.classList.remove(className); - }); + setTimeout(() => { + removeStyle({id: 0}); + document.documentElement.classList.remove(className); + }); } function getStyleId(el) {