Compare commits

..

2 Commits

Author SHA1 Message Date
c9329a33ea Bump version: 1.3.26 → 1.3.27
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 3m31s
2025-07-17 16:50:11 +01:00
b95f00486b relative path 2025-07-17 16:50:08 +01:00
3 changed files with 11 additions and 14 deletions

View File

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

View File

@ -1 +1 @@
1.3.26
1.3.27

View File

@ -74,12 +74,13 @@
}
function subscribeUser(registration) {
let baseUrl = '{{ config.BASE_URL }}'.replace(/\/$/, ""); // Remove trailing slash if present
if (window.location.protocol === 'https:') {
baseUrl = baseUrl.replace(/^http:/, 'https:');
fetch('/vapid-public-key')
.then(response => {
if (!response.ok) {
throw new Error('Failed to fetch VAPID public key');
}
fetch(`${baseUrl}/vapid-public-key`)
.then(response => response.json())
return response.json();
})
.then(data => {
const applicationServerKey = urlB64ToUint8Array(data.public_key);
registration.pushManager.subscribe({
@ -92,16 +93,12 @@
console.log('Failed to subscribe the user: ', err);
});
}).catch(function(err) {
console.error('Failed to fetch vapid key:', err);
console.error('Error during subscription process:', err);
});
}
function saveSubscription(subscription) {
let baseUrl = '{{ config.BASE_URL }}'.replace(/\/$/, ""); // Remove trailing slash if present
if (window.location.protocol === 'https:') {
baseUrl = baseUrl.replace(/^http:/, 'https:');
}
fetch(`${baseUrl}/save-subscription`, {
fetch('/save-subscription', {
method: 'POST',
headers: {
'Content-Type': 'application/json',