Skip to content

Commit

Permalink
Handle app version
Browse files Browse the repository at this point in the history
  • Loading branch information
barak committed Aug 10, 2024
1 parent fe23172 commit 28e4a70
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/renderer/src/app.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
<template>
<router-view />
</template>

<script lang="ts">
import { useMapStore } from './store/map-store'
window.electron.ipcRenderer.on('app-version', (_event, version) => {
const store = useMapStore()
store.setAppVersion(version)
})
window.electron.ipcRenderer.send('get-app-version')
</script>

0 comments on commit 28e4a70

Please sign in to comment.