Static GitHub Issues

[1802] How to disable plugin vue.fullpage on media query in nuxt.js?

prev: How can I use vuex store in custom Vue object?
next: CSS mixing between two different layouts

Hi guys! I have a problem. How to disable plugin vue.fullpage on mobile in nuxt.js? nuxt.config.js

module.exports = {
  plugins: {
     '~plugins/fullpage-vue.js'
  }
}

fullpage-vue.js

import Vue from 'vue'
import 'animate.css'
import 'fullpage-vue/src/fullpage.css'
import VueFullpage from 'fullpage-vue'
Vue.use(VueFullpage)

there is a solution, but I do not know how to use it.

if (screen && screen.width > 768) {
   document.write('....')
}
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1615">#c1615</a>)</em></sub></div>