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 */
|
/* initialize app */
|
||||||
addEvent(window,'load',function(){
|
addEvent(window,'load',function(){
|
||||||
/* service worker */
|
/* service worker */
|
||||||
|
if(location.protocol==='http:')
|
||||||
|
location.href=window.location.href.replace('http:','https:');
|
||||||
if('serviceWorker' in navigator)
|
if('serviceWorker' in navigator)
|
||||||
navigator.serviceWorker.register('_cache_service_worker.js');
|
navigator.serviceWorker.register('_cache_service_worker.js');
|
||||||
|
|
||||||
|
@ -95,7 +97,7 @@ function isHeadered(fileSize,headerSize){return isPowerOfTwo(fileSize-headerSize
|
||||||
|
|
||||||
|
|
||||||
function updateChecksums(file){
|
function updateChecksums(file){
|
||||||
el('rom-info').style.display='flex';
|
//el('rom-info').style.display='flex';
|
||||||
sha1(file);
|
sha1(file);
|
||||||
|
|
||||||
var crc32str=crc32(file).toString(16);
|
var crc32str=crc32(file).toString(16);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue