DEV Community


Discussion on: Nuxt, Meet Anime

dreaminder profile image
DreaMinder • Edited

"...and the process.browser to check if the code is running on a browser (and not a server... it's a Nuxt thing)."

This check doesn't make sense inside of mounted hook, it's triggered on client-side only.

mtpiercey profile image
Matthew Piercey Author

AFAIK, not with Nuxt. I may be wrong (I'll have to test that out) but I'm pretty sure I remember it not working when I tried to do something requiring window/document. I'll have to look into that, though - because I think you're probably right.