Question:
I’m trying to let players join a game via QR Code. Since that game will be hosted on several IP’s, i want to dynamically generate the URL.This is my current workaround in my NuxtJS Vue Component:
.fullPath
attribute, I still only get the relative path /
instead of http://10.16.1.173:3000/
.Full code on GitLab: pages/index.vue
Answer:
Try to check if you are in client side before accessing to ‘window’ object, you can use :If you have better answer, please add a comment about this, thank you!