2024-01-29 09:26:07 +08:00

10 lines
323 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isBrowser = exports.hasInstance = void 0;
const vue_1 = require("vue");
function hasInstance() {
return (0, vue_1.getCurrentInstance)() !== null;
}
exports.hasInstance = hasInstance;
exports.isBrowser = typeof window !== 'undefined';