Use IndexedDb to store cached geodata, fix #494. This should prevent crashes
This commit is contained in:
parent
8fa7de661e
commit
9c848cfaee
7 changed files with 94 additions and 147 deletions
|
@ -223,6 +223,7 @@ export class UIEventSource<T> {
|
|||
for (const callback of this._callbacks) {
|
||||
if (callback(this.data) === true) {
|
||||
// This callback wants to be deleted
|
||||
// Note: it has to return precisely true in order to avoid accidental deletions
|
||||
if (toDelete === undefined) {
|
||||
toDelete = [callback]
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue