Skip to content

Commit

Permalink
Use useId
Browse files Browse the repository at this point in the history
  • Loading branch information
MarmadileManteater committed Jan 31, 2025
1 parent ff01223 commit 5252398
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
3 changes: 1 addition & 2 deletions _scripts/webpack.web.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,7 @@ const config = {
},
fallback: {
'fs/promises': path.resolve(__dirname, '_empty.js'),
path: require.resolve('path-browserify'),
crypto: false
path: require.resolve('path-browserify')
},
extensions: ['.js', '.vue']
},
Expand Down
7 changes: 2 additions & 5 deletions src/renderer/components/FtSlider/FtSlider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@

<script setup>
import { computed, ref } from 'vue'
import { randomUUID } from 'crypto'
import { useI18n } from '../../composables/use-i18n-polyfill'
const { t } = useI18n()
import { useId } from '../../composables/use-id-polyfill.js'
const props = defineProps({
label: {
Expand Down Expand Up @@ -59,7 +56,7 @@ const props = defineProps({
const emit = defineEmits(['change'])
const id = randomUUID()
const id = useId()
const currentValue = ref(props.defaultValue)
const displayLabel = computed(() => {
Expand Down

0 comments on commit 5252398

Please sign in to comment.