Skip to content

Commit 47c1a03

Browse files
author
Pascal Klesse
committed
refactor: integrate useRuntimeConfig in BugReportButton and BugReportForm components
1 parent 6336202 commit 47c1a03

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/runtime/components/BugReportButton.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { computed } from 'vue'
33
import { useBugReport } from '../composables/useBugReport'
44
import type { BugReportConfig } from '~/src/runtime/types'
55
import iconPng from '../public/icon.png'
6+
import { useRuntimeConfig } from '#imports'
67
78
interface Props {
89
position?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left'

src/runtime/components/BugReportForm.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<script setup lang="ts">
22
import { computed, reactive, ref, watch } from 'vue'
33
import { z } from 'zod'
4+
import { useRuntimeConfig } from '#imports'
45
import type { AttachmentFile, BugReportConfig, BugReportData, BugReportType } from '../types'
56
import { captureScreenshot as captureScreenshotUtil } from '../utils/screenshot'
67
import { getBrowserInfo } from '../utils/browserInfo'

0 commit comments

Comments
 (0)