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

This commit is contained in:
Justin Greenberg 2020-05-06 15:18:49 -04:00 committed by GitHub
parent 028f9b4b88
commit e27f3f9ad2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,8 +113,8 @@ export async function generateCollaborationLink() {
return `${window.location.origin}${window.location.pathname}#room=${id},${key}`; return `${window.location.origin}${window.location.pathname}#room=${id},${key}`;
} }
async function getImportedKey(key: string, usage: string): Promise<CryptoKey> { function getImportedKey(key: string, usage: string) {
return await window.crypto.subtle.importKey( return window.crypto.subtle.importKey(
"jwk", "jwk",
{ {
alg: "A128GCM", alg: "A128GCM",