diff --git a/TODO b/TODO index 8bbac94..8110af7 100644 --- a/TODO +++ b/TODO @@ -2,3 +2,8 @@ Blog Ideas: - Tailscale + iptables - Ham Radio YouTube Videos - Dracula Tmux maintainership + +Website: +- add page for linux patches. +- add nicer page for audiofeed +- add qsos page? diff --git a/lib/fetchTimeout.js b/lib/fetchTimeout.js deleted file mode 100644 index c4deb6d..0000000 --- a/lib/fetchTimeout.js +++ /dev/null @@ -1,16 +0,0 @@ -// https://stackoverflow.com/questions/31061838/how-do-i-cancel-an-http-fetch-request/47250621#47250621 -// https://stackoverflow.com/questions/46946380/fetch-api-request-timeout/57888548#57888548 -// My API sometimes goes down, I also like to do offline development. -export default async function fetchTimeout(url, { ...options } = {}, ms) { - const controller = new AbortController(); - const id = setTimeout(() => controller.abort(), ms); - - const response = await fetch(url, { - ...options, - signal: controller.signal - }); - clearTimeout(id); - - console.log(response); - return response; -};