From 2fa49298ee3c293d67b62eaf686e3070aef29076 Mon Sep 17 00:00:00 2001 From: hensm Date: Sun, 25 Apr 2021 06:42:51 +0100 Subject: [PATCH] Fix weird whitespace --- ext/src/lib/options.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/ext/src/lib/options.ts b/ext/src/lib/options.ts index 95d29fd..cea50c2 100644 --- a/ext/src/lib/options.ts +++ b/ext/src/lib/options.ts @@ -58,7 +58,6 @@ export default new class extends TypedEventTarget { changes: { [key: string]: browser.storage.StorageChange } , areaName: string) { - if (areaName !== "sync") { return; } @@ -67,9 +66,6 @@ export default new class extends TypedEventTarget { const { oldValue, newValue } = changes.options; const changedKeys = []; - - - for (const key of Object.keys(newValue)) { if (oldValue) { // Don't track added keys @@ -80,17 +76,9 @@ export default new class extends TypedEventTarget { const oldKeyValue = oldValue[key]; const newKeyValue = newValue[key]; - - // Equality comparison if (oldKeyValue === newKeyValue) { continue; - - - - - - } // Array comparison @@ -105,8 +93,6 @@ export default new class extends TypedEventTarget { } changedKeys.push(key); - - } this.dispatchEvent(new CustomEvent("changed", {