additional error handling in launcher

This commit is contained in:
wishu
2022-06-08 09:32:53 +10:00
parent 642040cb1e
commit b40da768cf

View File

@@ -248,11 +248,16 @@ function switchPrompt() {
}
} catch (e) {
addLog('Error parsing character info XML: '+e, 'error');
switchPrompt();
return;
}
let uid = localStorage.getItem('uid');
if (uid != 'null' && uids.indexOf(uid) >= 0) {
setUidIndex(uids.indexOf(uid));
}
} else {
addLog('Error setting character ID: '+e, 'error');
switchPrompt();
}
}
}