Compare commits

..

2 Commits

Author SHA1 Message Date
b446b00fc6 Bump version: 1.3.25 → 1.3.26
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 3m27s
2025-07-17 16:43:10 +01:00
4caf1add26 send over https 2025-07-17 16:43:07 +01:00
3 changed files with 12 additions and 4 deletions

View File

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

View File

@ -1 +1 @@
1.3.25
1.3.26

View File

@ -74,7 +74,10 @@
}
function subscribeUser(registration) {
const baseUrl = '{{ config.BASE_URL }}'.replace(/\/$/, ""); // Remove trailing slash if present
let baseUrl = '{{ config.BASE_URL }}'.replace(/\/$/, ""); // Remove trailing slash if present
if (window.location.protocol === 'https:') {
baseUrl = baseUrl.replace(/^http:/, 'https:');
}
fetch(`${baseUrl}/vapid-public-key`)
.then(response => response.json())
.then(data => {
@ -88,11 +91,16 @@
}).catch(function(err) {
console.log('Failed to subscribe the user: ', err);
});
}).catch(function(err) {
console.error('Failed to fetch vapid key:', err);
});
}
function saveSubscription(subscription) {
const baseUrl = '{{ config.BASE_URL }}'.replace(/\/$/, ""); // Remove trailing slash if present
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`, {
method: 'POST',
headers: {