Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

nuxt window is not defined

created(){
    if (process.browser){
      console.log(window.innerWidth, window.innerHeight);
    }
  }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #nuxt #window #defined
ADD COMMENT
Topic
Name
5+5 =