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
{{ message }}
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.
Windows 10 Pro - 1903 - 18362.720
Chrome Version 84.0.4147.125 (Official Build) (64-bit)
The behavior with PushJs seems to vary. I've noticed 2 variances.
An example of how this is set up is :
assuming link = www.example.com/asd/dsa
var config = {
body: text,
icon: "/img/notification.png",
link: link,
tag: text
};
if (link) {
config.onClick = function () {
window.open(link);
this.close();
};
}
A notification pop-up on the right side of the screen. If I click on this pop-up, it opens to the correct/full URL.
1b) Issue is here If I leave it alone for 4 seconds, it calls onclose() by itself and it closes this pop up, BUT it adds itself to the Windows Notification Center. Clicking the notification here goes to the homepage of the URL, in this case, www.example.com, and drops everything after the /. How can I fix this ?
If I trigger the same message multiple times, it goes directly to the Windows Notification Center. Clicking on this notification now goes to the correct/full url.
A temporary workaround seems to be setting requireInteraction = true, so the pop up doesn't hide itself, but closing the tab that generated the notification, then clicking on the notification would open a new tab and goes to the homepage instead of the full url.
The text was updated successfully, but these errors were encountered:
Windows 10 Pro - 1903 - 18362.720
Chrome Version 84.0.4147.125 (Official Build) (64-bit)
The behavior with PushJs seems to vary. I've noticed 2 variances.
An example of how this is set up is :
assuming link = www.example.com/asd/dsa
1b) Issue is here If I leave it alone for 4 seconds, it calls onclose() by itself and it closes this pop up, BUT it adds itself to the Windows Notification Center. Clicking the notification here goes to the homepage of the URL, in this case, www.example.com, and drops everything after the /. How can I fix this ?
A temporary workaround seems to be setting requireInteraction = true, so the pop up doesn't hide itself, but closing the tab that generated the notification, then clicking on the notification would open a new tab and goes to the homepage instead of the full url.
The text was updated successfully, but these errors were encountered: