Skip to content

Commit

Permalink
fix: addon on client (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
hmbanan666 authored Aug 29, 2024
1 parent fdca79c commit 668f911
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/website/app/pages/(games)/addon/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ definePageMeta({
const { public: publicEnv } = useRuntimeConfig()
const route = useRoute()
const token = route.query.token?.toString() ?? ''
const addon = new BaseGameAddon({ token, websocketUrl: publicEnv.websocketUrl })
const stage = ref<HTMLElement>()
onMounted(async () => {
const addon = new BaseGameAddon({ token, websocketUrl: publicEnv.websocketUrl })
await addon.init()
stage.value?.appendChild(addon.app.canvas)
Expand Down

0 comments on commit 668f911

Please sign in to comment.