Skip to content
Snippets Groups Projects
Commit 511c6f96 authored by MitarashiDango's avatar MitarashiDango Committed by Eugen Rochko
Browse files

bug fix (WebPush does not work) (#6120)

parent 868568d1
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,7 @@ const sendSubscriptionToBackend = (subscription, me) => {
// Last one checks for payload support: https://web-push-book.gauntface.com/chapter-06/01-non-standards-browsers/#no-payload
const supportsPushNotifications = ('serviceWorker' in navigator && 'PushManager' in window && 'getKey' in PushSubscription.prototype);
export default function register () {
export function register () {
return (dispatch, getState) => {
dispatch(setBrowserSupport(supportsPushNotifications));
const me = getState().getIn(['meta', 'me']);
......
import { register as registerPushNotifications } from './actions/push_notifications';
import * as registerPushNotifications from './actions/push_notifications';
import { default as Mastodon, store } from './containers/mastodon';
import React from 'react';
import ReactDOM from 'react-dom';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment