mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-29 03:20:26 -05:00
24 lines
420 B
JavaScript
24 lines
420 B
JavaScript
|
import {
|
||
|
SET_BROWSER_SUPPORT,
|
||
|
SET_SUBSCRIPTION,
|
||
|
CLEAR_SUBSCRIPTION,
|
||
|
SET_ALERTS,
|
||
|
setAlerts,
|
||
|
} from './setter';
|
||
|
import { register, saveSettings } from './registerer';
|
||
|
|
||
|
export {
|
||
|
SET_BROWSER_SUPPORT,
|
||
|
SET_SUBSCRIPTION,
|
||
|
CLEAR_SUBSCRIPTION,
|
||
|
SET_ALERTS,
|
||
|
register,
|
||
|
};
|
||
|
|
||
|
export function changeAlerts(key, value) {
|
||
|
return dispatch => {
|
||
|
dispatch(setAlerts(key, value));
|
||
|
dispatch(saveSettings());
|
||
|
};
|
||
|
}
|