Skip to content

Commit

Permalink
update typescript check
Browse files Browse the repository at this point in the history
  • Loading branch information
borntofrappe committed Dec 9, 2021
1 parent c5c0f7c commit 7a7ccec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/kit/src/runtime/client/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,8 @@ export class Router {
const handle_mousemove = (event) => {
clearTimeout(mousemove_timeout);
mousemove_timeout = setTimeout(() => {
if (!event.target) return;
// ensure event.composedPath() in find_anchor(event) returns an array of EventTarget objects
event.target.dispatchEvent(
event.target?.dispatchEvent(
new CustomEvent('sveltekit:trigger_prefetch', { bubbles: true })
);
}, 20);
Expand Down

0 comments on commit 7a7ccec

Please sign in to comment.