mirror of
https://github.com/marcrobledo/RomPatcher.js.git
synced 2025-06-27 16:25:54 +00:00
trying to fix PWA
This commit is contained in:
parent
c37c564d6c
commit
b2cf3844cc
2 changed files with 3 additions and 1 deletions
0
.nojekyll
Normal file
0
.nojekyll
Normal file
|
@ -10,6 +10,8 @@ function el(e){return document.getElementById(e)}
|
|||
/* initialize app */
|
||||
addEvent(window,'load',function(){
|
||||
/* service worker */
|
||||
if(location.protocol==='http:')
|
||||
location.href=window.location.href.replace('http:','https:');
|
||||
if('serviceWorker' in navigator)
|
||||
navigator.serviceWorker.register('_cache_service_worker.js');
|
||||
|
||||
|
@ -95,7 +97,7 @@ function isHeadered(fileSize,headerSize){return isPowerOfTwo(fileSize-headerSize
|
|||
|
||||
|
||||
function updateChecksums(file){
|
||||
el('rom-info').style.display='flex';
|
||||
//el('rom-info').style.display='flex';
|
||||
sha1(file);
|
||||
|
||||
var crc32str=crc32(file).toString(16);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue