MCPcopy
hub / github.com/philc/vimium / chromeStorageOnChanged

Function chromeStorageOnChanged

lib/settings.js:104–112  ·  view source on GitHub ↗
(_changes, area)

Source from the content-addressed store, hash-verified

102 },
103
104 async chromeStorageOnChanged(_changes, area) {
105 // We store data with keys [settings-v1, ...] into the local storage. Only broadcast an event if
106 // the object stored with the settings key has changed.
107 // We only store settings in the sync area, so storage.sync changes must be settings changes.
108 if (area == "sync") {
109 await this.load();
110 this.dispatchEvent("change");
111 }
112 },
113
114 async load() {
115 // NOTE(philc): If we change the schema of the settings object in a backwards-incompatible way,

Callers

nothing calls this directly

Calls 1

loadMethod · 0.80

Tested by

no test coverage detected