chore: adjust useVisibilityChange
This commit is contained in:
@@ -0,0 +1 @@
|
||||
export const inBrowser = typeof window !== 'undefined';
|
||||
@@ -1,5 +1,6 @@
|
||||
import { Ref, unref } from 'vue';
|
||||
import { inBrowser, useEventListener } from '../useEventListener';
|
||||
import { inBrowser } from '../shared';
|
||||
import { useEventListener } from '../useEventListener';
|
||||
|
||||
export type UseClickAwayOptions = {
|
||||
eventName?: string;
|
||||
|
||||
@@ -6,8 +6,7 @@ import {
|
||||
onUnmounted,
|
||||
onDeactivated,
|
||||
} from 'vue';
|
||||
|
||||
export const inBrowser = typeof window !== 'undefined';
|
||||
import { inBrowser } from '../shared';
|
||||
|
||||
let supportsPassive = false;
|
||||
if (inBrowser) {
|
||||
|
||||
Reference in New Issue
Block a user