Fix original user theme not restored when disabling the extension
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user