mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
fix: storage always resetting to default
This commit is contained in:
@@ -70,7 +70,9 @@ class StorageManager {
|
||||
|
||||
private async loadFromStorage(): Promise<void> {
|
||||
const result = await browser.storage.local.get();
|
||||
this.data = { ...this.data, ...result };
|
||||
Object.entries(result).forEach(([key, value]) => {
|
||||
Reflect.set(this.data, key, value);
|
||||
});
|
||||
}
|
||||
|
||||
private async saveToStorage(): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user