DIR:/home/htlwork.com/www/himsaral/node_modules/@restart/ui/cjs/ |
Current File : //home/htlwork.com/www/himsaral/node_modules/@restart/ui/cjs/getScrollbarWidth.js |
"use strict"; exports.__esModule = true; exports.default = getBodyScrollbarWidth; /** * Get the width of the vertical window scrollbar if it's visible */ function getBodyScrollbarWidth(ownerDocument = document) { const window = ownerDocument.defaultView; return Math.abs(window.innerWidth - ownerDocument.documentElement.clientWidth); } |