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

Adds browser notifications #11

Merged
merged 6 commits into from
Sep 22, 2023
Merged

Adds browser notifications #11

merged 6 commits into from
Sep 22, 2023

Conversation

EarthCow
Copy link
Owner

This PR will effectively add notifications delivered by the browser to the user. The notifications only fire when there is no spiteful tab currently visible. They can be clicked to either focus an open spiteful tab or open a new one. A toggle for notifications is also now included in the settings modal.

- Only fire when all tabs are not visible/open
- Click event will focus an open tab or create one if there are none
- Now show user's name in title
- Original filename is shown in content when files are sent
@EarthCow EarthCow linked an issue Sep 21, 2023 that may be closed by this pull request
@imnltsa
Copy link
Collaborator

imnltsa commented Sep 22, 2023

Looks good. Don't forget to update languages.php for compatibility.

Additionally, reworks the promise logic a bit in dashboard.js. New error catch for vapid key changes that automatically unsubscribes and resubscribes.
Copy link
Collaborator

@imnltsa imnltsa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@EarthCow EarthCow merged commit bc8644f into master Sep 22, 2023
1 check passed
@EarthCow EarthCow deleted the browser-notifications branch September 22, 2023 02:23
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.

Add browser notifications
2 participants