From 7b3864979f3cf9aae89d16bae708d5c3124e8e8a Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Thu, 12 May 2022 00:23:00 +1000 Subject: Adjust code for typescript checks --- src/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util.ts') diff --git a/src/util.ts b/src/util.ts index 042f37f..1697459 100644 --- a/src/util.ts +++ b/src/util.ts @@ -116,7 +116,7 @@ export function getScrollBarWidth(){ // Get width difference let scrollBarWidth = outer.offsetWidth - inner.offsetWidth; // Remove temporary divs - outer.parentNode.removeChild(outer); + outer.parentNode!.removeChild(outer); // return scrollBarWidth; } -- cgit v1.2.3