Compare commits

..

2 Commits

Author SHA1 Message Date
d40f98f5e4 Bump version: 1.3.24 → 1.3.25
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 3m27s
2025-07-17 16:34:22 +01:00
b5f1375a87 use the baseurl for the call 2025-07-17 16:34:17 +01:00
3 changed files with 6 additions and 4 deletions

View File

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

View File

@ -1 +1 @@
1.3.24
1.3.25

View File

@ -74,7 +74,8 @@
}
function subscribeUser(registration) {
fetch('http://localhost:3001/vapid-public-key')
const baseUrl = '{{ config.BASE_URL }}'.replace(/\/$/, ""); // Remove trailing slash if present
fetch(`${baseUrl}/vapid-public-key`)
.then(response => response.json())
.then(data => {
const applicationServerKey = urlB64ToUint8Array(data.public_key);
@ -91,7 +92,8 @@
}
function saveSubscription(subscription) {
fetch('/save-subscription', {
const baseUrl = '{{ config.BASE_URL }}'.replace(/\/$/, ""); // Remove trailing slash if present
fetch(`${baseUrl}/save-subscription`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',