mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-08 08:39:59 +00:00
Fix weird whitespace
This commit is contained in:
@@ -58,7 +58,6 @@ export default new class extends TypedEventTarget<EventMap> {
|
|||||||
changes: { [key: string]: browser.storage.StorageChange }
|
changes: { [key: string]: browser.storage.StorageChange }
|
||||||
, areaName: string) {
|
, areaName: string) {
|
||||||
|
|
||||||
|
|
||||||
if (areaName !== "sync") {
|
if (areaName !== "sync") {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -67,9 +66,6 @@ export default new class extends TypedEventTarget<EventMap> {
|
|||||||
const { oldValue, newValue } = changes.options;
|
const { oldValue, newValue } = changes.options;
|
||||||
const changedKeys = [];
|
const changedKeys = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
for (const key of Object.keys(newValue)) {
|
for (const key of Object.keys(newValue)) {
|
||||||
if (oldValue) {
|
if (oldValue) {
|
||||||
// Don't track added keys
|
// Don't track added keys
|
||||||
@@ -80,17 +76,9 @@ export default new class extends TypedEventTarget<EventMap> {
|
|||||||
const oldKeyValue = oldValue[key];
|
const oldKeyValue = oldValue[key];
|
||||||
const newKeyValue = newValue[key];
|
const newKeyValue = newValue[key];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Equality comparison
|
// Equality comparison
|
||||||
if (oldKeyValue === newKeyValue) {
|
if (oldKeyValue === newKeyValue) {
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Array comparison
|
// Array comparison
|
||||||
@@ -105,8 +93,6 @@ export default new class extends TypedEventTarget<EventMap> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
changedKeys.push(key);
|
changedKeys.push(key);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.dispatchEvent(new CustomEvent("changed", {
|
this.dispatchEvent(new CustomEvent("changed", {
|
||||||
|
|||||||
Reference in New Issue
Block a user