Skip to content

Commit

Permalink
fix: clear timeout after reload
Browse files Browse the repository at this point in the history
  • Loading branch information
linyibing committed Mar 13, 2024
1 parent 1e9915c commit 2201d1f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,10 @@ export default class PeriodicPARA extends Plugin {
};
}

onunload() {}
onunload() {
clearTimeout(this.timeout);
clearInterval(this.interval);
}

async loadSettings() {
this.settings = Object.assign({}, DEFAULT_SETTINGS, await this.loadData());
Expand Down

0 comments on commit 2201d1f

Please sign in to comment.