UpdateFix: v1.3.2-2

pull/1/head
Samuel Zielke 9 months ago
parent 30f59bd62b
commit 43d7b5728d

@ -8,7 +8,7 @@ self.addEventListener("install", event => {
'/static/app/css/custom.css', '/static/app/css/custom.css',
'/static/app/js/dbcontrol.js', '/static/app/js/dbcontrol.js',
'/static/app/js/home.js', '/static/app/js/home.js',
'/static/app/js/timer.js', '/static/app/js/timer.js',
'/static/app/js/welcomeControl.js', '/static/app/js/welcomeControl.js',
'/static/app/js/exportDB.js', '/static/app/js/exportDB.js',
'/static/app/js/importDB.js', '/static/app/js/importDB.js',
@ -56,15 +56,15 @@ self.addEventListener('activate', event => {
); );
}); });
// Serve from Cache // // Serve from Cache
self.addEventListener("fetch", event => { // self.addEventListener("fetch", event => {
event.respondWith( // event.respondWith(
caches.match(event.request) // caches.match(event.request)
.then(response => { // .then(response => {
return response || fetch(event.request); // return response || fetch(event.request);
}) // })
.catch(() => { // .catch(() => {
return caches.match('/app/home'); // return caches.match('/app/home');
}) // })
) // )
}); // });

@ -1,7 +1,7 @@
<br> <br>
<h1>Update Time!</h1> <h1>Update Time!</h1>
<br> <br>
<h5>v1.3.2_1</h5> <h5>v1.3.2-2</h5>
<p> <p>
<b style="color: red">Fehler Behebung! 🔥</b> <b style="color: red">Fehler Behebung! 🔥</b>
<br>Monatswechsel funktioniert! <br>Monatswechsel funktioniert!
@ -19,4 +19,4 @@
</p> </p>
<br> <br>
<input type="text" name="versionnumber" id="versionnumber" class="d-none" value="1.3.2_1"> <input type="text" name="versionnumber" id="versionnumber" class="d-none" value="1.3.2_2">

@ -10,5 +10,6 @@ urlpatterns = [
path("home/", views.home), path("home/", views.home),
path('offline/', TemplateView.as_view(template_name="offline.html")), path('offline/', TemplateView.as_view(template_name="offline.html")),
path("install/", views.install), path("install/", views.install),
path("v1321/", views.home) path("v1321/", views.v1322),
path("v1322/", views.v1322),
] ]

@ -8,7 +8,13 @@ def install(request):
return render(request, "app/install.html") return render(request, "app/install.html")
def home(request): def home(request):
return render(request, "app/home.html") return redirect("/app/v1322")
def login(request): def login(request):
return render(request, "app/login.html") return render(request, "app/login.html")
def v1321(request):
return redirect("/app/v1322")
def v1322(request):
return render(request, "app/home.html")

@ -9,12 +9,13 @@ PWA_APP_BACKGROUND_COLOR = '#9FEDD7'
PWA_APP_DISPLAY = 'standalone' PWA_APP_DISPLAY = 'standalone'
PWA_APP_SCOPE = '/' PWA_APP_SCOPE = '/'
PWA_APP_ORIENTATION = 'portrait' PWA_APP_ORIENTATION = 'portrait'
PWA_APP_START_URL = '/app/v1321/' PWA_APP_START_URL = '/app/v1322/'
PWA_APP_STATUS_BAR_COLOR = 'black-translucent' PWA_APP_STATUS_BAR_COLOR = 'black-translucent'
PWA_SERVICE_WORKER_PATH = os.path.join(BASE_DIR, 'app/static/app/js', 'serviceworker.js') PWA_SERVICE_WORKER_PATH = os.path.join(BASE_DIR, 'app/static/app/js', 'serviceworker.js')
PWA_APP_ICONS = [ PWA_APP_ICONS = [
{ {
'src': '/static/app/images/appleicon_whitebg.png', 'src': '/static/app/images/appleicon_whitebg.png',
'sizes': '160x160' 'sizes': '160x160'
} }
] ]

Loading…
Cancel
Save

Powered by TurnKey Linux.