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