mirror of
https://github.com/YouHaveTrouble/GuildMaster.git
synced 2026-05-12 06:26:59 +00:00
save data export and import
This commit is contained in:
@@ -51,7 +51,6 @@ import {version} from "../package.json"
|
||||
:adventurerForHire="adventurerForHire"
|
||||
:news="news"
|
||||
@finalizeQuest="finalizeQuest($event)"
|
||||
@wipeSave="resetSave()"
|
||||
@recruitActionTaken="recruitAction($event)"
|
||||
/>
|
||||
</template>
|
||||
@@ -262,11 +261,6 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
},
|
||||
resetSave() {
|
||||
if (!confirm("You are about to wipe your save file. Are you sure?")) return;
|
||||
window.localStorage.removeItem("savedGame");
|
||||
window.location.reload();
|
||||
},
|
||||
async updateNews() {
|
||||
const result = await fetch("https://raw.githubusercontent.com/YouHaveTrouble/GuildMaster/master/news.txt").catch(() => {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user