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:
parent
a4b25f7df1
commit
4675cdf3f2
3 changed files with 12 additions and 12 deletions
|
@ -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*/ {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue