Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

fix(data): removes unnecessary await (#1549)

Justin Greenberge27f3f9ad237
diff --git a/src/data/index.ts b/src/data/index.ts
index a37fb58f6c..4779a81008 100644
--- a/src/data/index.ts
+++ b/src/data/index.ts
@@ -113,8 +113,8 @@ export async function generateCollaborationLink() {
return `${window.location.origin}${window.location.pathname}#room=${id},${key}`;
}
-async function getImportedKey(key: string, usage: string): Promise<CryptoKey> {
- return await window.crypto.subtle.importKey(
+function getImportedKey(key: string, usage: string) {
+ return window.crypto.subtle.importKey(
"jwk",
{
alg: "A128GCM",