Skip to content

Commit 8ff2f43

Browse files
committed
Better Incognito warning
1 parent 934cba2 commit 8ff2f43

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

src/js/states/preload.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,17 @@ export class PreloadState extends GameState {
9797

9898
startLoading() {
9999
this.setStatus("Booting")
100-
100+
.then(() => {
101+
try {
102+
window.localStorage.setItem("local_storage_feature_detection", "1");
103+
} catch (ex) {
104+
throw new Error(
105+
"Could not access local storage. Make sure you are not playing in incognito mode and allow thirdparty cookies!"
106+
);
107+
}
108+
})
101109
.then(() => this.setStatus("Creating platform wrapper", 3))
110+
102111
.then(() => this.sendBeacon())
103112
.then(() => authorizeViaSSOToken(this.app, this.dialogs))
104113

@@ -345,12 +354,6 @@ export class PreloadState extends GameState {
345354
${this.currentStatus} failed:<br/>
346355
${text}
347356
</div>
348-
349-
<div class="supportHelp">
350-
Please send me an email with steps to reproduce and what you did before this happened:
351-
<br /><a class="email" href="mailto:${email}?subject=App%20does%20not%20launch">${email}</a>
352-
</div>
353-
354357
<div class="lower">
355358
<button class="resetApp styledButton">Reset App</button>
356359
<i>Build ${G_BUILD_VERSION} @ ${G_BUILD_COMMIT_HASH}</i>

0 commit comments

Comments
 (0)