Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Commit

Permalink
Fix for Safari 11.x (technical preview)
Browse files Browse the repository at this point in the history
Safari 11 has deprecated webkitSubtle and added subtle
  • Loading branch information
Fjandin committed Jun 20, 2017
1 parent 463c142 commit ae3e9fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webcrypto-shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
_CryptoKey = global.CryptoKey || global.Key || Object;

var isIE = !!global.msCrypto,
isWebkit = !!_crypto.webkitSubtle;
isWebkit = !_crypto.subtle && !!_crypto.webkitSubtle;
if ( !isIE && !isWebkit ) return;

function s2a ( s ) {
Expand Down

0 comments on commit ae3e9fa

Please sign in to comment.