mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 963130 - NotificationDB throws with missing this.byTag[origin]. r=gwagner
This commit is contained in:
parent
1b53f37858
commit
73877a3039
@ -57,6 +57,18 @@ let NotificationDB = {
|
||||
} catch (e) {
|
||||
if (DEBUG) { debug("Unable to parse file data " + e); }
|
||||
}
|
||||
// populate the list of notifications by tag
|
||||
if (this.notifications) {
|
||||
for (var origin in this.notifications) {
|
||||
this.byTag[origin] = {};
|
||||
for (var id in this.notifications[origin]) {
|
||||
var curNotification = this.notifications[origin][id];
|
||||
if (curNotification.tag) {
|
||||
this.byTag[origin][curNotification.tag] = curNotification;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
this.loaded = true;
|
||||
callback && callback();
|
||||
}.bind(this),
|
||||
|
Loading…
Reference in New Issue
Block a user