MCPcopy Create free account
hub / github.com/apache/pouchdb / notifyLocalWindows

Method notifyLocalWindows

lib/index.js:407–413  ·  view source on GitHub ↗
(dbName)

Source from the content-addressed store, hash-verified

405 }
406
407 notifyLocalWindows(dbName) {
408 //do a useless change on a storage thing
409 //in order to get other windows's listeners to activate
410 if (hasLocalStorage()) {
411 localStorage[dbName] = (localStorage[dbName] === "a") ? "b" : "a";
412 }
413 }
414
415 notify(dbName) {
416 this.emit(dbName);

Callers 1

notifyMethod · 0.95

Calls 1

hasLocalStorageFunction · 0.70

Tested by

no test coverage detected