소스 검색

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

Justin Greenberg 5 년 전
부모
커밋
e27f3f9ad2
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/data/index.ts

+ 2 - 2
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",