Compare commits

..

No commits in common. "fbd7138af9d1e17ea1ad802438eea15ada9ae667" and "b9773de8058c30dec7a24047338757d74015ed13" have entirely different histories.

2 changed files with 5 additions and 5 deletions

View file

@ -17,7 +17,6 @@ jobs:
VITE_API_URL: ${{ secrets.VITE_API_URL }} VITE_API_URL: ${{ secrets.VITE_API_URL }}
VITE_TURNSTILE_SITE_KEY: ${{ secrets.VITE_TURNSTILE_SITE_KEY }} VITE_TURNSTILE_SITE_KEY: ${{ secrets.VITE_TURNSTILE_SITE_KEY }}
VITE_PUBLIC_VAPID_KEY: ${{ secrets.VITE_PUBLIC_VAPID_KEY }} VITE_PUBLIC_VAPID_KEY: ${{ secrets.VITE_PUBLIC_VAPID_KEY }}
VITE_GITHUB_URL: ${{ secrets.VITE_GITHUB_URL }}
run: | run: |
npm --version && node --version npm --version && node --version
npm i -g pnpm npm i -g pnpm

View file

@ -23,13 +23,14 @@ self.addEventListener("notificationclick", function (event) {
const clickedNotification = event.notification; const clickedNotification = event.notification;
clickedNotification.close(); clickedNotification.close();
if (event.action == "open" && event.data?.id) { if (event.action == "open" && event.data.id) {
const promiseChain = clients.openWindow( const promiseChain = clients.openWindow(
BASE_URL + "/colles/" + event.data.id BASE_URL + "/colles/" + event.data.id
); );
event.waitUntil(promiseChain); event.waitUntil(promiseChain);
} else { return;
const promiseChain = clients.openWindow(BASE_URL);
event.waitUntil(promiseChain);
} }
const promiseChain = clients.openWindow(BASE_URL);
event.waitUntil(promiseChain);
}); });