ignore localstorage-saved active quests if the user can't see them

This commit is contained in:
Gwendolyn 2024-12-26 04:12:17 +01:00
parent aea7df1b24
commit 7a2fdfd064

View file

@ -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);