fix: storage always resetting to default

This commit is contained in:
SethBurkart123
2025-04-03 22:24:25 +11:00
parent 048ccb248e
commit 45a16de405
3 changed files with 6 additions and 4 deletions
+3 -1
View File
@@ -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> {