Compare commits
2 commits
b9773de805
...
fbd7138af9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fbd7138af9 | ||
|
|
63dbad65ea |
2 changed files with 5 additions and 5 deletions
|
|
@ -17,6 +17,7 @@ jobs:
|
|||
VITE_API_URL: ${{ secrets.VITE_API_URL }}
|
||||
VITE_TURNSTILE_SITE_KEY: ${{ secrets.VITE_TURNSTILE_SITE_KEY }}
|
||||
VITE_PUBLIC_VAPID_KEY: ${{ secrets.VITE_PUBLIC_VAPID_KEY }}
|
||||
VITE_GITHUB_URL: ${{ secrets.VITE_GITHUB_URL }}
|
||||
run: |
|
||||
npm --version && node --version
|
||||
npm i -g pnpm
|
||||
|
|
|
|||
|
|
@ -23,14 +23,13 @@ self.addEventListener("notificationclick", function (event) {
|
|||
const clickedNotification = event.notification;
|
||||
clickedNotification.close();
|
||||
|
||||
if (event.action == "open" && event.data.id) {
|
||||
if (event.action == "open" && event.data?.id) {
|
||||
const promiseChain = clients.openWindow(
|
||||
BASE_URL + "/colles/" + event.data.id
|
||||
);
|
||||
event.waitUntil(promiseChain);
|
||||
return;
|
||||
}
|
||||
|
||||
} else {
|
||||
const promiseChain = clients.openWindow(BASE_URL);
|
||||
event.waitUntil(promiseChain);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue