unbuild sea

This commit is contained in:
Mark Nadal
2021-08-21 21:27:00 -07:00
parent 087704ec6b
commit cd45008433
21 changed files with 600 additions and 567 deletions

View File

@@ -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){}