mirror of
https://github.com/amark/gun.git
synced 2025-06-06 22:26:48 +00:00
sea blobs! (#1353)
* sea blobs! * and null origins * null fix * null check is last
This commit is contained in:
parent
203bd40932
commit
e07c9b21ec
4
sea.js
4
sea.js
@ -37,7 +37,9 @@
|
||||
if(location.protocol.indexOf('s') < 0
|
||||
&& location.host.indexOf('localhost') < 0
|
||||
&& ! /^127\.\d+\.\d+\.\d+$/.test(location.hostname)
|
||||
&& location.protocol.indexOf('file:') < 0){
|
||||
&& location.protocol.indexOf('blob:') < 0
|
||||
&& location.protocol.indexOf('file:') < 0
|
||||
&& location.origin != 'null'){
|
||||
console.warn('HTTPS needed for WebCrypto in SEA, redirecting...');
|
||||
location.protocol = 'https:'; // WebCrypto does NOT work without HTTPS!
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user