From 4e681c82cd071c8551816082cfa9148669cfa6c5 Mon Sep 17 00:00:00 2001 From: Romain Vigier Date: Tue, 25 Feb 2020 21:47:37 +0100 Subject: [PATCH] Fix original user theme not restored when disabling the extension --- src/modules/Switcher.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/Switcher.js b/src/modules/Switcher.js index b0c475a..04a1a0d 100644 --- a/src/modules/Switcher.js +++ b/src/modules/Switcher.js @@ -67,9 +67,9 @@ var Switcher = class { disable() { try { - this.theme.current = this.variants.original; this.theme.disable(); this.nightlight.disable(); + this.theme.current = this.variants.original; } catch(e) {} // Since we're disabling, we'll just ignore errors. finally {