Skip to content

Commit

Permalink
fix: fix ssr (#1589)
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao authored Sep 13, 2024
1 parent 2827c67 commit 89eefbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
8 changes: 0 additions & 8 deletions src/_util/canUseDom.ts

This file was deleted.

4 changes: 2 additions & 2 deletions src/_util/supportsPassive.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { ref } from 'vue';
import { canUseDom } from './canUseDom';
import { isBrowser } from '../shared';

export const supportsPassive = ref(false);

if (canUseDom) {
if (!isBrowser) {
try {
const opts = {};
Object.defineProperty(opts, 'passive', {
Expand Down

0 comments on commit 89eefbe

Please sign in to comment.