atriusmaps-node-sdk
Version:
This project provides an API to Atrius Personal Wayfinder maps within a Node environment. See the README.md for more information
2 lines (1 loc) • 424 B
JavaScript
const e=new Set;let n=!1,o=!1;function t(){if(!o){o=!0;for(const n of e)n(!0);e.clear()}document.body.removeEventListener("click",t),document.body.removeEventListener("keydown",t)}function d(){n||(n=!0,"undefined"!=typeof window&&null!=window.document?.body?performance.now()>1e4?o=!0:(o=!1,document.body.addEventListener("click",t),document.body.addEventListener("keydown",t)):o=!0)}export{d as startInitialStateListener};