Skip to content

Commit

Permalink
Protect against Hotel Runner, again
Browse files Browse the repository at this point in the history
  • Loading branch information
ydaniv committed May 9, 2024
1 parent b877194 commit 7b347fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scrollend.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const supported = typeof window == 'undefined' ? true : "onscrollend" in window;

if (!supported && ! 'HR_INSTANCE' in window) {
if (!supported && !('HR_INSTANCE' in window)) {
const scrollendEvent = new Event('scrollend');
const pointers = new Set();

Expand Down

0 comments on commit 7b347fc

Please sign in to comment.