My APOD New Tab
- 2 Devlogs
- 5 Total hours
im gonna fetch all nasa's data mwahaha... This is my custom new tab, with a simple and minimalistic page, search engine selection and URL pin creation.
im gonna fetch all nasa's data mwahaha... This is my custom new tab, with a simple and minimalistic page, search engine selection and URL pin creation.
Added a function to pin your favourite URLs for easier access with localSotrage to ensure they stay even after reloads. Instead to showing the website’s name, it displays it’s favicon for a simpler UI.
It took me quite a while to debug the localStorage function. It turned out that the issue was the parsing and storing URLs as an array.
My site was initially deploying via pages-build-and-deployment, which led to the API not working. After some time and many git commit --allow-empty -m "Trigger pages build", I finally found out what the problem was! I didn’t change it to build via GitHub Actions. After changing that, it worked quite well. Another problem I faced was the timezone difference with my country and APOD’s API. I received 500 errors when calling them. It worked in the end when i used yesterday’s date!
I’ll be thinking of what other features I should add to my new tab page, and implement them in the next devlog!