Compare commits
No commits in common. "07dc83016073e133425a1c02e6a102533c959b3c" and "2e63cd951afd66a32e03c86c3958966ed65e387a" have entirely different histories.
07dc830160
...
2e63cd951a
@ -1,5 +1,5 @@
|
|||||||
[tool.bumpversion]
|
[tool.bumpversion]
|
||||||
current_version = "1.3.32"
|
current_version = "1.3.31"
|
||||||
commit = true
|
commit = true
|
||||||
tag = true
|
tag = true
|
||||||
tag_name = "{new_version}"
|
tag_name = "{new_version}"
|
||||||
|
2
app.py
2
app.py
@ -159,7 +159,7 @@ def login() -> Union[Response, str]:
|
|||||||
next_url = request.args.get("next")
|
next_url = request.args.get("next")
|
||||||
if next_url:
|
if next_url:
|
||||||
return redirect(next_url)
|
return redirect(next_url)
|
||||||
return redirect(url_for("home", loggedin=True))
|
return redirect(url_for("home"))
|
||||||
except requests.exceptions.RequestException:
|
except requests.exceptions.RequestException:
|
||||||
pass # Fall through to error
|
pass # Fall through to error
|
||||||
|
|
||||||
|
@ -57,9 +57,8 @@
|
|||||||
if ('serviceWorker' in navigator && 'PushManager' in window) {
|
if ('serviceWorker' in navigator && 'PushManager' in window) {
|
||||||
navigator.serviceWorker.register('{{ url_for("static", filename="service-worker.js") }}').then(function(registration) {
|
navigator.serviceWorker.register('{{ url_for("static", filename="service-worker.js") }}').then(function(registration) {
|
||||||
console.log('ServiceWorker registration successful with scope: ', registration.scope);
|
console.log('ServiceWorker registration successful with scope: ', registration.scope);
|
||||||
// Check for the 'loggedin' query parameter to trigger the prompt
|
// Check if we should ask for permission
|
||||||
const urlParams = new URLSearchParams(window.location.search);
|
if (document.referrer.includes('/login') || (performance.navigation.type == performance.navigation.TYPE_RELOAD && new URLSearchParams(window.location.search).has('loggedin'))) {
|
||||||
if (urlParams.has('loggedin')) {
|
|
||||||
askPermission(registration);
|
askPermission(registration);
|
||||||
}
|
}
|
||||||
}, function(err) {
|
}, function(err) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user