()
| 345 | |
| 346 | class Changes extends EE { |
| 347 | constructor() { |
| 348 | super(); |
| 349 | |
| 350 | this._listeners = {}; |
| 351 | |
| 352 | if (hasLocalStorage()) { |
| 353 | addEventListener("storage", (e) => { |
| 354 | this.emit(e.key); |
| 355 | }); |
| 356 | } |
| 357 | } |
| 358 | |
| 359 | addListener(dbName, id, db, opts) { |
| 360 | if (this._listeners[id]) { |
nothing calls this directly
no test coverage detected