Fallback to async store in self.crypto doesn't exist in webworkers (ie/edge)

This commit is contained in:
yflory committed 2018-06-22 19:43:07 +02:00
1 parent 52cc007431
commit fbe940c024
2 files changed
+29 -4

No files matched your search

+4
View File
@@ -0,0 +1,4 @@
if (!self.crypto && !self.msCrypto) {
throw new Error("E_NOCRYPTO");
}
postMessage("OK");