Skip to content

Commit da06fa5

Browse files
committed
revert: quest "offline" fix
this should have never been called while offline in the first place? Not sure how I triggered the original bug
1 parent d2669e2 commit da06fa5

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Diff for: changelog.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# UnderScript Changelog
22

3+
## Version 0.60.2 (2025-03-16)
4+
1. Fixed quest progress noification (probably)
5+
36
## Version 0.60.1 (2025-03-15)
47
The great plugin (& bug fix) update
58
### Fixes

Diff for: src/utils/quests.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import Quest, { getId } from '../structures/quests/Quest.js';
77
*/
88
const quests = new Map();
99
let fetching = false;
10-
let offline = true; // TODO: have underscript cache the user state
1110

1211
export function getQuests() {
1312
return [...quests.values()];
@@ -36,7 +35,7 @@ function update(data, { callback, event = true }) {
3635
}
3736

3837
export function fetch(callback, event = true) {
39-
if (fetching || offline || !window.$) return;
38+
if (fetching) return;
4039
fetching = true;
4140
axios.get('/Quests').then((response) => {
4241
fetching = false;
@@ -52,8 +51,4 @@ eventManager.on(':load:Quests', () => {
5251
update(document, { event: false });
5352
});
5453

55-
eventManager.on('login', () => {
56-
offline = false;
57-
});
58-
5954
eventManager.on('getVictory getDefeat', fetch);

0 commit comments

Comments
 (0)