UNPKG

vue-mobile-detection

Version:

Vue.js prototype function `this.$isMobile()` that returns a Boolean value depending on whether or not the user is browsing with a mobile

9 lines (6 loc) 181 B
import { createApp } from "vue"; import App from "./App.vue"; import detectMobile from "@/components/index"; const app = createApp(App); app.use(detectMobile); app.mount("#app");