* Move push notifications settings * fix typo `setf` -> `set`
This commit is contained in:
committed by
Eugen Rochko
parent
3a52c90de1
commit
cdae7e4c8b
@ -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