summaryrefslogtreecommitdiffhomepage
path: root/packages/browser/src/helpers
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2022-11-19 23:54:08 -0800
committerMatthew Miller <matthew@millerti.me>2022-11-19 23:54:08 -0800
commitc01fd8466b633c103661652e00e90678f4d9e287 (patch)
treecb50048122ed209bc6e7375dda36d76507c016b3 /packages/browser/src/helpers
parent2740f81eb2b7e31610b2250baf59591da9828ea3 (diff)
Fix issues in Browser due to TypeScript upgrade
Diffstat (limited to 'packages/browser/src/helpers')
-rw-r--r--packages/browser/src/helpers/webAuthnAbortService.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/browser/src/helpers/webAuthnAbortService.ts b/packages/browser/src/helpers/webAuthnAbortService.ts
index 479df55..8955526 100644
--- a/packages/browser/src/helpers/webAuthnAbortService.ts
+++ b/packages/browser/src/helpers/webAuthnAbortService.ts
@@ -15,8 +15,10 @@ class WebAuthnAbortService {
this.controller.abort('Cancelling existing WebAuthn API call for new one');
}
- this.controller = new AbortController();
- return this.controller.signal;
+ const newController = new AbortController();
+
+ this.controller = newController;
+ return newController.signal;
}
}