From e27f3f9ad2379c1023bff2c2c7e0d9a0c48de544 Mon Sep 17 00:00:00 2001 From: Justin Greenberg Date: Wed, 6 May 2020 15:18:49 -0400 Subject: [PATCH] fix(data): removes unnecessary await (#1549) --- src/data/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/index.ts b/src/data/index.ts index a37fb58f..4779a810 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 { - return await window.crypto.subtle.importKey( +function getImportedKey(key: string, usage: string) { + return window.crypto.subtle.importKey( "jwk", { alg: "A128GCM",