From dae4dcd6fe2f79bb2c06b19343afd8ecc228373e Mon Sep 17 00:00:00 2001 From: Simon Chan <1330321+yume-chan@users.noreply.github.com> Date: Thu, 24 Aug 2023 02:41:52 +0800 Subject: [PATCH] fix(credential): fix usage in worker --- libraries/adb-credential-web/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/adb-credential-web/src/index.ts b/libraries/adb-credential-web/src/index.ts index bde2651e5..b76482512 100644 --- a/libraries/adb-credential-web/src/index.ts +++ b/libraries/adb-credential-web/src/index.ts @@ -97,7 +97,7 @@ export default class AdbWebCredentialStore implements AdbCredentialStore { return { buffer: privateKey, - name: `${this.#appName}@${window.location.hostname}`, + name: `${this.#appName}@${globalThis.location.hostname}`, }; }