logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

initial_state.js (726B)


  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 displaySensitiveMedia = getMeta('display_sensitive_media');
  7. export const unfollowModal = getMeta('unfollow_modal');
  8. export const boostModal = getMeta('boost_modal');
  9. export const deleteModal = getMeta('delete_modal');
  10. export const me = getMeta('me');
  11. export const searchEnabled = getMeta('search_enabled');
  12. export const charLimit = getMeta('char_limit') || 5000;
  13. export default initialState;