There was an error while loading. Please reload this page.
1 parent cb2fb37 commit 9de10deCopy full SHA for 9de10de
src/handlers/sdk-helper/helper.ts
@@ -14,9 +14,7 @@ export class SDKHelper {
14
}
15
16
protected async getOrigin(): Promise<string> {
17
- // @ts-ignore
18
- const origin = await this.page.evaluate(() => window.origin);
19
- if (origin == "null") return "";
20
- return origin;
+ const u = new URL(await this.page.url());
+ return u.origin === 'null' ? '' : u.origin;
21
22
0 commit comments