fix: stop recording when app is unmounted
This commit is contained in:
parent
a439433977
commit
916a2c53af
@ -39,6 +39,8 @@
|
||||
<script setup>
|
||||
import AppsIcon from '@/components/Icons/AppsIcon.vue'
|
||||
import { Popover, createResource } from 'frappe-ui'
|
||||
import { onUnmounted } from 'vue';
|
||||
import { stopRecording } from '@/telemetry';
|
||||
|
||||
const props = defineProps({
|
||||
active: Boolean,
|
||||
@ -70,4 +72,8 @@ const apps = createResource({
|
||||
return _apps
|
||||
},
|
||||
})
|
||||
|
||||
onUnmounted(() => {
|
||||
stopRecording()
|
||||
})
|
||||
</script>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user