|
|
|
@ -101,9 +101,15 @@ export class ClientAPI {
|
|
|
|
|
*/
|
|
|
|
|
apiTryLogin() {
|
|
|
|
|
if (!G_IS_STANDALONE) {
|
|
|
|
|
const token = window.prompt(
|
|
|
|
|
"Please enter the auth token for the puzzle DLC (If you have none, you can't login):"
|
|
|
|
|
);
|
|
|
|
|
let token = window.localStorage.getItem("dev_api_auth_token");
|
|
|
|
|
if (!token) {
|
|
|
|
|
token = window.prompt(
|
|
|
|
|
"Please enter the auth token for the puzzle DLC (If you have none, you can't login):"
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
if (token) {
|
|
|
|
|
window.localStorage.setItem("dev_api_auth_token", token);
|
|
|
|
|
}
|
|
|
|
|
return Promise.resolve({ token });
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|