mirror of
https://github.com/amark/gun.git
synced 2026-02-20 18:57:47 +00:00
allow signing signed data + only do sign transform if new data from self else verify
This commit is contained in:
@@ -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){}
|
||||
|
||||
Reference in New Issue
Block a user