Skip to content

Commit

Permalink
refactor(app): Add tres version to the canvas as a data attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
JaimeTorrealba committed Jan 10, 2024
1 parent 2ec756c commit db7b9e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/TresCanvas.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
h,
getCurrentInstance,
} from 'vue'
import pkg from '../../package.json'
import {
useTresContextProvider,
useLogger,
Expand Down Expand Up @@ -187,6 +188,7 @@ onMounted(() => {
ref="canvas"
:data-scene="scene.uuid"
:class="$attrs.class"
:data-tres="`tresjs ${pkg.version}`"
:style="{
display: 'block',
width: '100%',
Expand Down

0 comments on commit db7b9e1

Please sign in to comment.