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

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

View File

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