this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #264 from cheeaun/main

Update from main

authored by

Chee Aun and committed by
GitHub
7b049385 6feb2e7b

+17 -2
+2
.github/workflows/tagrelease.yml
··· 9 9 jobs: 10 10 release: 11 11 runs-on: ubuntu-latest 12 + permissions: 13 + contents: write 12 14 steps: 13 15 - uses: actions/checkout@v4 14 16 with:
+1 -1
public/sw.js
··· 165 165 166 166 event.waitUntil( 167 167 (async () => { 168 - await event.notification.close(); 169 168 const clients = await self.clients.matchAll({ 170 169 type: 'window', 171 170 includeUncontrolled: true, ··· 195 194 console.log('NOTIFICATION CLICK openWindow', url); 196 195 await self.clients.openWindow(url); 197 196 } 197 + await event.notification.close(); 198 198 })(), 199 199 ); 200 200 });
+13
src/main.jsx
··· 11 11 import('preact/debug'); 12 12 } 13 13 14 + // AbortSignal.timeout polyfill 15 + // Temporary fix from https://github.com/mo/abortcontroller-polyfill/issues/73#issuecomment-1541180943 16 + // Incorrect implementation, but should be good enough for now 17 + if ('AbortSignal' in window) { 18 + AbortSignal.timeout = 19 + AbortSignal.timeout || 20 + ((duration) => { 21 + const controller = new AbortController(); 22 + setTimeout(() => controller.abort(), duration); 23 + return controller.signal; 24 + }); 25 + } 26 + 14 27 render( 15 28 <HashRouter> 16 29 <App />
+1 -1
src/pages/home.jsx
··· 63 63 to="/notifications" 64 64 class={`button plain notifications-button ${ 65 65 snapStates.notificationsShowNew ? 'has-badge' : '' 66 - } ${menuState}`} 66 + } ${menuState || ''}`} 67 67 onClick={(e) => { 68 68 e.stopPropagation(); 69 69 if (window.matchMedia('(min-width: calc(40em))').matches) {