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 5e2fa50 commit b5afc24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/happy-dom/src/window/Window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ export default class Window extends EventTarget implements IWindow {
* @returns number
*/
public get scrollY(): number {
return this?.document?.documentElement?.scrollTop ?? 0;
return this.document.documentElement?.scrollTop ?? 0;
}

/**
Expand Down

0 comments on commit b5afc24

Please sign in to comment.