Release 1.0.1: restrict PWA install to logged-in users

This commit is contained in:
Ronny Grobel
2026-04-20 21:46:45 +02:00
parent e6930011ab
commit 7b6f2ca6d7
4 changed files with 37 additions and 4 deletions

View File

@@ -9,6 +9,10 @@
var swUrl = cfg.swUrl || '/sw.js';
var scope = cfg.scope || '/';
if ( cfg.requireLogin && ! cfg.isLoggedIn ) {
return;
}
// ------------------------------------------------------------------
// Service Worker registrieren
// ------------------------------------------------------------------

View File

@@ -8,7 +8,7 @@
'use strict';
const CACHE_NAME = 'kgv-pwa-v1';
const CACHE_NAME = 'kgv-pwa-v1-0-1';
const OFFLINE_PAGE = '/';
const PRECACHE_URLS = [