pinafore/routes/_actions/contentWarnings.js
2018-03-03 15:44:43 -08:00

7 lines
221 B
JavaScript

import { store } from '../_store/store'
export function toggleContentWarningShown (realm) {
let shown = store.getComposeData(realm, 'contentWarningShown')
store.setComposeData(realm, {contentWarningShown: !shown})
}