Clear page when switching plugins

This commit is contained in:
Alex Ling 2022-06-05 12:40:45 +00:00
parent 30d5ad0c19
commit 5b58d8ac59

View File

@ -72,6 +72,9 @@ const component = () => {
}); });
}, },
pluginChanged() { pluginChanged() {
this.manga = undefined;
this.chapters = undefined;
this.mid = undefined;
this.loadPlugin(this.pid); this.loadPlugin(this.pid);
localStorage.setItem("plugin", this.pid); localStorage.setItem("plugin", this.pid);
}, },