Static GitHub Issues

[2614] Access window object from Vuex store file

prev: How to config server to serve /api ?
next: Absolute redirects add additional history item

Hi, sorry if this has been answered already. I have a couple needs to check into a vuex state from the main window object and do not understand how process.browser works to open access to window.

Is there a property on config to set? Otherwise, what's the best way to get the window object?

<!--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/c2274">#c2274</a>)</em></sub></div>