Fix weird whitespace

This commit is contained in:
hensm
2021-04-25 06:42:51 +01:00
parent 742762eb3a
commit 2fa49298ee

View File

@@ -58,7 +58,6 @@ export default new class extends TypedEventTarget<EventMap> {
changes: { [key: string]: browser.storage.StorageChange }
, areaName: string) {
if (areaName !== "sync") {
return;
}
@@ -67,9 +66,6 @@ export default new class extends TypedEventTarget<EventMap> {
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<EventMap> {
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<EventMap> {
}
changedKeys.push(key);
}
this.dispatchEvent(new CustomEvent("changed", {