Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3820414166 |
Vendored
+6
-6
@@ -11,30 +11,30 @@
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
|
||||
<link href="/_app/immutable/entry/start.DRWRIYgZ.js" rel="modulepreload">
|
||||
<link href="/_app/immutable/chunks/BdkwYcun.js" rel="modulepreload">
|
||||
<link href="/_app/immutable/entry/start.Brt_7G-i.js" rel="modulepreload">
|
||||
<link href="/_app/immutable/chunks/B_GGgm-X.js" rel="modulepreload">
|
||||
<link href="/_app/immutable/chunks/BjgrqnN-.js" rel="modulepreload">
|
||||
<link href="/_app/immutable/chunks/CAWWRzNH.js" rel="modulepreload">
|
||||
<link href="/_app/immutable/chunks/B-GqcZrE.js" rel="modulepreload">
|
||||
<link href="/_app/immutable/chunks/DpGxxGDS.js" rel="modulepreload">
|
||||
<link href="/_app/immutable/chunks/3PInzq4O.js" rel="modulepreload">
|
||||
<link href="/_app/immutable/chunks/qakGnb92.js" rel="modulepreload">
|
||||
<link href="/_app/immutable/entry/app.BZim7ID1.js" rel="modulepreload">
|
||||
<link href="/_app/immutable/entry/app.n45Hd8qT.js" rel="modulepreload">
|
||||
|
||||
</head>
|
||||
<body data-sveltekit-preload-data="hover">
|
||||
<div style="display: contents">
|
||||
<script>
|
||||
{
|
||||
__sveltekit_1ygn49r = {
|
||||
__sveltekit_nj28a9 = {
|
||||
base: ""
|
||||
};
|
||||
|
||||
const element = document.currentScript.parentElement;
|
||||
|
||||
Promise.all([
|
||||
import("/_app/immutable/entry/start.DRWRIYgZ.js"),
|
||||
import("/_app/immutable/entry/app.BZim7ID1.js")
|
||||
import("/_app/immutable/entry/start.Brt_7G-i.js"),
|
||||
import("/_app/immutable/entry/app.n45Hd8qT.js")
|
||||
]).then(([kit, app]) => {
|
||||
kit.start(app, element);
|
||||
});
|
||||
|
||||
@@ -219,7 +219,7 @@ export const version = {
|
||||
|
||||
// Push notifications
|
||||
export const push = {
|
||||
subscribe: (subscription: { endpoint: string; keys: { p256dh: string; auth: string } }) =>
|
||||
subscribe: (subscription: { endpoint: string; key_p256dh: string; key_auth: string }) =>
|
||||
request<{ id: number; message: string }>('POST', '/api/push/subscribe', subscription),
|
||||
unsubscribe: (endpoint: string) =>
|
||||
request<{ message: string }>('DELETE', '/api/push/subscribe', { endpoint }),
|
||||
|
||||
@@ -113,10 +113,8 @@
|
||||
const subJson = sub.toJSON();
|
||||
await pushApi.subscribe({
|
||||
endpoint: sub.endpoint,
|
||||
keys: {
|
||||
p256dh: subJson.keys?.p256dh || '',
|
||||
auth: subJson.keys?.auth || ''
|
||||
}
|
||||
key_p256dh: subJson.keys?.p256dh || '',
|
||||
key_auth: subJson.keys?.auth || ''
|
||||
});
|
||||
pushEnabled = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user