mirror of
https://github.com/amark/gun.git
synced 2026-03-09 18:33:10 +00:00
unbuild sea
This commit is contained in:
@@ -3,7 +3,9 @@
|
||||
try{ if(SEA.window){
|
||||
if(location.protocol.indexOf('s') < 0
|
||||
&& location.host.indexOf('localhost') < 0
|
||||
&& ! /^127\.\d+\.\d+\.\d+$/.test(location.hostname)
|
||||
&& location.protocol.indexOf('file:') < 0){
|
||||
console.warn('HTTPS needed for WebCrypto in SEA, redirecting...');
|
||||
location.protocol = 'https:'; // WebCrypto does NOT work without HTTPS!
|
||||
}
|
||||
} }catch(e){}
|
||||
|
||||
Reference in New Issue
Block a user