You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
541 B

  1. const element = document.getElementById('initial-state');
  2. const initialState = element && JSON.parse(element.textContent);
  3. const getMeta = (prop) => initialState && initialState.meta && initialState.meta[prop];
  4. export const reduceMotion = getMeta('reduce_motion');
  5. export const autoPlayGif = getMeta('auto_play_gif');
  6. export const unfollowModal = getMeta('unfollow_modal');
  7. export const boostModal = getMeta('boost_modal');
  8. export const deleteModal = getMeta('delete_modal');
  9. export const me = getMeta('me');
  10. export default initialState;