Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move push notifications settings (regression from #5879) #5941

Merged
merged 2 commits into from
Dec 9, 2017
Merged

Move push notifications settings (regression from #5879) #5941

merged 2 commits into from
Dec 9, 2017

Conversation

ykzts
Copy link
Sponsor Member

@ykzts ykzts commented Dec 9, 2017

Some non-Web UI pages (e.g. /about, /share?text=..., /tag/..., etc...) are broken from #5879.

stacktrace

Because import of web_push_subscription.js has been added to actions/push_notifications.js, store/configureStore.js is circularly referenced.

Reported by https://theboss.tech/@the_boss/99143135685541289

@ykzts ykzts added the bug Something isn't working label Dec 9, 2017
@ykzts
Copy link
Sponsor Member Author

ykzts commented Dec 9, 2017

cc @abcang

@@ -99,7 +98,7 @@ export function register () {
if (!(subscription instanceof PushSubscription)) {
store.dispatch(setSubscription(subscription));
if (me) {
setSettingsToLocalStorage(me, { alerts: subscription.alerts });
pushNotificationsSetting.setf(me, { alerts: subscription.alerts });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

setf

Copy link
Sponsor Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants