Prevent loading main page if installed in subdirectory (fix #869) (#870)

When installed in a subdirectory the service-worker should not load (and cache) /.
This commit is contained in:
Michael 2020-04-19 14:30:13 +02:00 committed by GitHub
parent bd6510b188
commit 1358929958
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
var dataCacheName = 'PSM-v1';
var cacheName = 'PSM-PWA-final-1';
var filesToCache = [
'/',
'',
'index.php',
'src/templates/default/static/js/history.js',
'src/templates/default/static/js/scripts.js',