mirror of
https://git.crafterpika.cc/crafterpika/SplatTool-public.git
synced 2026-08-17 18:52:16 +02:00
warn user of potential save file wipe
This commit is contained in:
parent
100de2a71b
commit
7358c34063
1 changed files with 10 additions and 0 deletions
|
|
@ -114,6 +114,13 @@ function populateEquipment() {
|
|||
sendToCSharp("AllEquipment");
|
||||
}
|
||||
|
||||
function warnUser() {
|
||||
if (!sessionStorage.getItem("warnShown")) {
|
||||
alert("DO NOT USE ANY OF THESE BEFORE THE TITLE SCREEN LOADED OR YOU WILL WIPE YOUR SAVE FILE YOU HAVE BEEN WARNED!!!");
|
||||
sessionStorage.setItem('warnShown', 'true');
|
||||
}
|
||||
}
|
||||
|
||||
window.external.receiveMessage(message => {
|
||||
// console.log(message)
|
||||
if (message.startsWith("Cemu Base:")) {
|
||||
|
|
@ -266,7 +273,10 @@ function openTab(evt, tabName) {
|
|||
if (tabName === 'Tab6') {
|
||||
keepStatsUpdated = true;
|
||||
updateStatsPage();
|
||||
} else if (tabName == 'Tab8') {
|
||||
warnUser()
|
||||
} else if (tabName == 'Tab9') {
|
||||
warnUser()
|
||||
populateEquipment()
|
||||
} else {
|
||||
keepStatsUpdated = false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue