|
@@ -196,7 +196,7 @@ class Modal extends BaseComponent<ModalReactProps, ModalState> {
|
|
}
|
|
}
|
|
|
|
|
|
static getScrollbarWidth() {
|
|
static getScrollbarWidth() {
|
|
- if (Object.prototype.toString.call(globalThis) === '[object Window]') {
|
|
|
|
|
|
+ if (globalThis && Object.prototype.toString.call(globalThis) === '[object Window]') {
|
|
return window.innerWidth - document.documentElement.clientWidth;
|
|
return window.innerWidth - document.documentElement.clientWidth;
|
|
}
|
|
}
|
|
return 0;
|
|
return 0;
|