this repo has no description
0
fork

Configure Feed

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

Add AbortSignal.timeout polyfill

+13
+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 />