diff --git a/src/original/element/scroll-left.ts b/src/original/element/scroll-left.ts index 668e851..f4e53d6 100644 --- a/src/original/element/scroll-left.ts +++ b/src/original/element/scroll-left.ts @@ -2,6 +2,4 @@ import {UNSUPPORTED_ENVIRONMENT} from "../../support/unsupported-environment"; const s = Object.getOwnPropertyDescriptor(Element.prototype, "scrollTop"); -export const ELEMENT_ORIGINAL_SCROLL_LEFT_SET_DESCRIPTOR = (UNSUPPORTED_ENVIRONMENT || typeof s !== "undefined") - ? undefined - : s!.set!; +export const ELEMENT_ORIGINAL_SCROLL_LEFT_SET_DESCRIPTOR = UNSUPPORTED_ENVIRONMENT || typeof s === "undefined" ? undefined : s!.set!; diff --git a/src/original/element/scroll-top.ts b/src/original/element/scroll-top.ts index 9cfd7e3..a084f34 100644 --- a/src/original/element/scroll-top.ts +++ b/src/original/element/scroll-top.ts @@ -1,6 +1,4 @@ import {UNSUPPORTED_ENVIRONMENT} from "../../support/unsupported-environment"; const s = Object.getOwnPropertyDescriptor(Element.prototype, "scrollTop"); -export const ELEMENT_ORIGINAL_SCROLL_TOP_SET_DESCRIPTOR = (UNSUPPORTED_ENVIRONMENT || typeof s !== "undefined") - ? undefined - : s!.set!; +export const ELEMENT_ORIGINAL_SCROLL_TOP_SET_DESCRIPTOR = UNSUPPORTED_ENVIRONMENT || typeof s === "undefined" ? undefined : s!.set!;