blob: ac7315f68c1ff232e7068ab0ba7232c86663fe18 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
const element = document.getElementById('initial-state');
const initialState = element && JSON.parse(element.textContent);
const getMeta = (prop) => initialState && initialState.meta && initialState.meta[prop];
export const reduceMotion = getMeta('reduce_motion');
export const autoPlayGif = getMeta('auto_play_gif');
export default initialState;
|