allow signing signed data + only do sign transform if new data from self else verify

This commit is contained in:
Mark Nadal
2018-12-13 17:00:14 -08:00
parent 83914df1d1
commit ea302a9217
17 changed files with 111 additions and 93 deletions

View File

@@ -1,10 +1,10 @@
var SEA = require('./root');
if(SEA.window){
try{ if(SEA.window){
if(location.protocol.indexOf('s') < 0
&& location.host.indexOf('localhost') < 0
&& location.protocol.indexOf('file:') < 0){
location.protocol = 'https:'; // WebCrypto does NOT work without HTTPS!
}
}
} }catch(e){}