Webcrypto won't go down without a fight

Turns out that assigning a new object to window.crypto.subtle
is not so easy. That's probably a good thing.
This commit is contained in:
lilia 2014-10-23 21:30:36 -07:00
parent a4b25f7df1
commit 4675cdf3f2
3 changed files with 12 additions and 12 deletions

View file

@ -16,7 +16,7 @@
/* Web Crypto polyfill. TODO: replace with web crypto */
// All inputs/outputs are arraybuffers!
window.crypto.subtle = (function() {
window.textsecure.subtle = (function() {
/* if (window.crypto.subtle !== undefined && window.crypto.subtle !== null) {
return window.crypto.subtle;
} else*/ {