Skip to content

Commit

Permalink
#681@trivial: Update packages/happy-dom/src/window/Window.ts.
Browse files Browse the repository at this point in the history
  • Loading branch information
capricorn86 committed Dec 21, 2022
1 parent f1ffb64 commit 5e2fa50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/happy-dom/src/window/Window.ts
Expand Up @@ -489,7 +489,7 @@ export default class Window extends EventTarget implements IWindow {
* @returns number
*/
public get scrollX(): number {
return this?.document?.documentElement?.scrollLeft ?? 0;
return this.document.documentElement?.scrollLeft ?? 0;
}

/**
Expand Down

0 comments on commit 5e2fa50

Please sign in to comment.