Compare commits
No commits in common. "fbd7138af9d1e17ea1ad802438eea15ada9ae667" and "b9773de8058c30dec7a24047338757d74015ed13" have entirely different histories.
fbd7138af9
...
b9773de805
2 changed files with 5 additions and 5 deletions
|
|
@ -17,7 +17,6 @@ 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,13 +23,14 @@ 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);
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
const promiseChain = clients.openWindow(BASE_URL);
|
||||
event.waitUntil(promiseChain);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue