mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
chore: Remove comment and unneeded export
This commit is contained in:
parent
45fc9c1860
commit
a91037fb50
@ -6,7 +6,7 @@ export default function getScrollbarWidth() {
|
||||
if (scrollbarWidth !== null) {
|
||||
return scrollbarWidth;
|
||||
}
|
||||
/* istanbul ignore else */
|
||||
|
||||
if (typeof document !== 'undefined') {
|
||||
const div = document.createElement('div');
|
||||
const newStyles = {
|
||||
@ -31,7 +31,7 @@ export default function getScrollbarWidth() {
|
||||
return scrollbarWidth || 0;
|
||||
}
|
||||
|
||||
export const hasNoOverlayScrollbars = getScrollbarWidth() > 0;
|
||||
const hasNoOverlayScrollbars = getScrollbarWidth() > 0;
|
||||
|
||||
export const addClassIfNoOverlayScrollbar = (classname: string, htmlElement: HTMLElement = document.body) => {
|
||||
if (hasNoOverlayScrollbars) {
|
||||
|
Loading…
Reference in New Issue
Block a user