vue-files-preview-inno
Version:
A tool for previewing files such as doc, excel, pdf, image, markdown, txt, audio, and video and so on.
20 lines (19 loc) • 553 B
JavaScript
import { unref as e, getCurrentScope as t, onScopeDispose as n } from "vue";
function i(o) {
return t() ? (n(o), !0) : !1;
}
function p(o) {
return typeof o == "function" ? o() : e(o);
}
const f = typeof window < "u" && typeof document < "u";
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
const c = Object.prototype.toString, u = (o) => c.call(o) === "[object Object]", s = () => {
};
export {
f as isClient,
u as isObject,
s as noop,
p as toValue,
i as tryOnScopeDispose
};
//# sourceMappingURL=index.mjs.map