6 lines
174 B
JavaScript
6 lines
174 B
JavaScript
import { getCurrentInstance } from 'vue';
|
|
export function hasInstance() {
|
|
return getCurrentInstance() !== null;
|
|
}
|
|
export const isBrowser = typeof window !== 'undefined';
|