Compare commits
2 Commits
fbaf79c9ae
...
d40f98f5e4
Author | SHA1 | Date | |
---|---|---|---|
d40f98f5e4 | |||
b5f1375a87 |
@ -1,5 +1,5 @@
|
||||
[tool.bumpversion]
|
||||
current_version = "1.3.24"
|
||||
current_version = "1.3.25"
|
||||
commit = true
|
||||
tag = true
|
||||
tag_name = "{new_version}"
|
||||
|
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user