Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update #26

wants to merge 1 commit into from

Conversation

Dramorian
Copy link

@Dramorian Dramorian commented Aug 25, 2024

Generated conventional commit message

feat(background.js): add background fetch functionality

- Add constants for PREVIEW_IMAGE_BASE_URL, NOTIFICATION_ICON_URL, BADGE_COLOR, BACKGROUND_FETCH_ALARM_NAME, and FETCH_INTERVAL_MINUTES
- Add getPreviewUrl function to generate preview image URL
- Refactor createNotification function to use try/catch and handle errors
- Add updateKnownStreamers function to remove offline streamers from knownOnlineStreamers object
- Add notifyNewStreamers function to send notifications for new online streamers
- Refactor fetchStreamerStatus function to use updateKnownStreamers and notifyNewStreamers
- Add hydrateStreamData function to hydrate stream data with usernames that may not be live
- Add updateBadgeAndTitle function to update extension's badge text and title
- Add backgroundFetch function to fetch streamer status in the background
- Add onAlarm listener to trigger backgroundFetch on alarm

2. Fixed deprecated classes;
3. Fixed notification clicking;
4. Fixed ignored Promise;
5. Refactoring & Reformatting
@Friss
Copy link
Owner

Friss commented Aug 26, 2024

Thanks I'll try and take a look at this this week

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants