ignore localstorage-saved active quests if the user can't see them
This commit is contained in:
parent
aea7df1b24
commit
7a2fdfd064
1 changed files with 5 additions and 0 deletions
|
@ -2676,6 +2676,11 @@ QuestsControl = ExpandingControl.extend({
|
|||
|
||||
onAdd: function () {
|
||||
this._activeQuests = new Set(this.getStored('active', []));
|
||||
for (const name of this._activeQuests) {
|
||||
if (!(name in c3nav.user_data.quests)) {
|
||||
this._activeQuests.delete(name);
|
||||
}
|
||||
}
|
||||
this._loadedQuests = new Set();
|
||||
|
||||
ExpandingControl.prototype.onAdd.call(this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue