You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When I receive a push notification saying I received a file and "click to see", clicking on the notification does nothing, the notification just disappear.
To Reproduce
Steps to reproduce the behavior:
Open Pairdrop, make sure that push notifications are enabled
Click on another window or tab on your computer
With another device, share a file to your computer
On your computer, click on the notification
It does nothing
Expected behavior
It should focus on the tab/window
Desktop (please complete the following information):
It is not possible to create a callback to actively focus the current viewport.
Instead, this is actually the default behavior for click events on Notifications, which is why t:
The click event of the Notification interface fires when the user clicks on displayed Notification.
The default behavior is to move the focus to the viewport of the notification's related browsing context. If you don't want that behavior, call preventDefault() on the event object.
Describe the bug
When I receive a push notification saying I received a file and "click to see", clicking on the notification does nothing, the notification just disappear.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should focus on the tab/window
Desktop (please complete the following information):
Bug occurs on official PairDrop instance https://pairdrop.net/
Yes
Version: v1.11.2
Additional context
Binding a callback after this line could be the solution.
PairDrop/public/scripts/ui.js
Line 2598 in 31ec776
The text was updated successfully, but these errors were encountered: