Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Mastodon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Mastodon
Commits
511c6f96
Commit
511c6f96
authored
7 years ago
by
MitarashiDango
Committed by
Eugen Rochko
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
bug fix (WebPush does not work) (#6120)
parent
868568d1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/javascript/mastodon/actions/push_notifications/registerer.js
+1
-1
1 addition, 1 deletion
...ascript/mastodon/actions/push_notifications/registerer.js
app/javascript/mastodon/main.js
+1
-1
1 addition, 1 deletion
app/javascript/mastodon/main.js
with
2 additions
and
2 deletions
app/javascript/mastodon/actions/push_notifications/registerer.js
+
1
−
1
View file @
511c6f96
...
...
@@ -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
'
]);
...
...
This diff is collapsed.
Click to expand it.
app/javascript/mastodon/main.js
+
1
−
1
View file @
511c6f96
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
'
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment