Skip to content

Commit

Permalink
modify relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
gz65555 committed Jan 23, 2025
1 parent b580e97 commit b8c2e10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/.vitepress/components/ktx-encoder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@

<script lang="ts">
import { ref, defineComponent, computed } from 'vue'
import { encodeToKTX2 } from 'ktx2-encoder'
import { encodeToKTX2 } from '../../../src/web'
import {
NCard,
NUpload,
Expand Down Expand Up @@ -156,7 +156,7 @@ export default defineComponent({
imageFile.value
const arrayBuffer = await imageFile.value.arrayBuffer()
const ktx2Data = await encodeToKTX2(arrayBuffer, options.value)
const ktx2Data = await encodeToKTX2(new Uint8Array(arrayBuffer), options.value)
// Create and trigger download
const blob = new Blob([ktx2Data], { type: 'application/octet-stream' })
Expand Down

0 comments on commit b8c2e10

Please sign in to comment.