We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f662464 commit 7da58d7Copy full SHA for 7da58d7
src/backend/storeManagers/hyperplay/games.ts
@@ -1404,10 +1404,13 @@ async function createSiweMessage(signerAddress: string): Promise<SiweMessage> {
1404
throw 'could not get main window url'
1405
}
1406
const url = new URL(mainWindowUrl)
1407
- const domain = url.host ? url.host : 'hyperplay'
1408
- const origin = url.origin.startsWith('file://')
1409
- ? 'file://hyperplay'
1410
- : url.origin
+ let domain = url.host
+ let origin = url.origin
+ // host is empty string and origin is null on the artifact
+ if (url.protocol === 'file:') {
1411
+ domain = 'hyperplay'
1412
+ origin = 'file://hyperplay'
1413
+ }
1414
1415
const statementRes = await fetch(
1416
DEV_PORTAL_URL + 'api/v1/license_contracts/validate/get-nonce'
0 commit comments