Fix original user theme not restored when disabling the extension

This commit is contained in:
Romain Vigier
2020-02-25 21:47:37 +01:00
parent 53d37fae53
commit 4e681c82cd
+1 -1
View File
@@ -67,9 +67,9 @@ var Switcher = class {
disable() { disable() {
try { try {
this.theme.current = this.variants.original;
this.theme.disable(); this.theme.disable();
this.nightlight.disable(); this.nightlight.disable();
this.theme.current = this.variants.original;
} }
catch(e) {} // Since we're disabling, we'll just ignore errors. catch(e) {} // Since we're disabling, we'll just ignore errors.
finally { finally {