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

8 lines (6 loc) 170 B
import { detectMobile } from "@/components/VueMobileDetection"; export default { install: (app) => { app.config.globalProperties.$isMobile = detectMobile; }, };