* Move push notifications settings * fix typo `setf` -> `set`
This commit is contained in:
1 parent
3a52c90de1
commit
cdae7e4c8b
3 files changed
+54
-27
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import axios from 'axios';
|
||||
import { setSettingsToLocalStorage } from '../web_push_subscription';
|
||||
import { pushNotificationsSetting } from '../settings';
|
||||
|
||||
export const SET_BROWSER_SUPPORT = 'PUSH_NOTIFICATIONS_SET_BROWSER_SUPPORT';
|
||||
export const SET_SUBSCRIPTION = 'PUSH_NOTIFICATIONS_SET_SUBSCRIPTION';
|
||||
@@ -50,7 +50,7 @@ export function saveSettings() {
|
||||
}).then(() => {
|
||||
const me = getState().getIn(['meta', 'me']);
|
||||
if (me) {
|
||||
setSettingsToLocalStorage(me, data);
|
||||
pushNotificationsSetting.set(me, data);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user