Compare commits
No commits in common. "d40f98f5e4d5f45db8b01b25c135d29bcc44c180" and "fbaf79c9ae7848fc81c8d45ecefc2e979c800652" have entirely different histories.
d40f98f5e4
...
fbaf79c9ae
@ -1,5 +1,5 @@
|
|||||||
[tool.bumpversion]
|
[tool.bumpversion]
|
||||||
current_version = "1.3.25"
|
current_version = "1.3.24"
|
||||||
commit = true
|
commit = true
|
||||||
tag = true
|
tag = true
|
||||||
tag_name = "{new_version}"
|
tag_name = "{new_version}"
|
||||||
|
@ -74,8 +74,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function subscribeUser(registration) {
|
function subscribeUser(registration) {
|
||||||
const baseUrl = '{{ config.BASE_URL }}'.replace(/\/$/, ""); // Remove trailing slash if present
|
fetch('http://localhost:3001/vapid-public-key')
|
||||||
fetch(`${baseUrl}/vapid-public-key`)
|
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
const applicationServerKey = urlB64ToUint8Array(data.public_key);
|
const applicationServerKey = urlB64ToUint8Array(data.public_key);
|
||||||
@ -92,8 +91,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function saveSubscription(subscription) {
|
function saveSubscription(subscription) {
|
||||||
const baseUrl = '{{ config.BASE_URL }}'.replace(/\/$/, ""); // Remove trailing slash if present
|
fetch('/save-subscription', {
|
||||||
fetch(`${baseUrl}/save-subscription`, {
|
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user