Compare commits

...

2 Commits

Author SHA1 Message Date
07dc830160 Bump version: 1.3.31 → 1.3.32
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 3m35s
2025-07-17 18:44:11 +01:00
6fa693ecd0 notifications 2025-07-17 18:44:09 +01:00
4 changed files with 6 additions and 5 deletions

View File

@ -1,5 +1,5 @@
[tool.bumpversion]
current_version = "1.3.31"
current_version = "1.3.32"
commit = true
tag = true
tag_name = "{new_version}"

View File

@ -1 +1 @@
1.3.31
1.3.32

2
app.py
View File

@ -159,7 +159,7 @@ def login() -> Union[Response, str]:
next_url = request.args.get("next")
if next_url:
return redirect(next_url)
return redirect(url_for("home"))
return redirect(url_for("home", loggedin=True))
except requests.exceptions.RequestException:
pass # Fall through to error

View File

@ -57,8 +57,9 @@
if ('serviceWorker' in navigator && 'PushManager' in window) {
navigator.serviceWorker.register('{{ url_for("static", filename="service-worker.js") }}').then(function(registration) {
console.log('ServiceWorker registration successful with scope: ', registration.scope);
// Check if we should ask for permission
if (document.referrer.includes('/login') || (performance.navigation.type == performance.navigation.TYPE_RELOAD && new URLSearchParams(window.location.search).has('loggedin'))) {
// Check for the 'loggedin' query parameter to trigger the prompt
const urlParams = new URLSearchParams(window.location.search);
if (urlParams.has('loggedin')) {
askPermission(registration);
}
}, function(err) {