Conn state listener, click action button
This commit is contained in:
parent
3bce0ad4ae
commit
5878d7e5a6
8 changed files with 120 additions and 27 deletions
|
@ -1,4 +1,4 @@
|
|||
import {formatMessage, formatTitleWithFallback, topicShortUrl} from "./utils";
|
||||
import {formatMessage, formatTitleWithFallback, openUrl, topicShortUrl} from "./utils";
|
||||
import prefs from "./Prefs";
|
||||
import subscriptionManager from "./SubscriptionManager";
|
||||
|
||||
|
@ -19,7 +19,7 @@ class NotificationManager {
|
|||
icon: '/static/img/favicon.png'
|
||||
});
|
||||
if (notification.click) {
|
||||
n.onclick = (e) => window.open(notification.click);
|
||||
n.onclick = (e) => openUrl(notification.click);
|
||||
} else {
|
||||
n.onclick = onClickFallback;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue