source: imaps-frontend/node_modules/@xobotyi/scrollbar-width/dist/index.esnext.js@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 549 bytes
Line 
1const e=t=>{if("undefined"==typeof document)return 0;if(!document.body||document.readyState&&"loading"===document.readyState)return;if(!0!==t&&"number"==typeof e.__cache)return e.__cache;const o=document.createElement("div"),{style:n}=o;n.display="block",n.position="absolute",n.width="100px",n.height="100px",n.left="-999px",n.top="-999px",n.overflow="scroll",document.body.insertBefore(o,null);const{clientWidth:c}=o;if(0!==c)return e.__cache=100-c,document.body.removeChild(o),e.__cache;document.body.removeChild(o)};export{e as scrollbarWidth};
Note: See TracBrowser for help on using the repository browser.