chore: show version on error page

This commit is contained in:
Adam 2025-12-24 20:25:36 -06:00 committed by Aiden Cline
commit 52d81bdfd2
6 changed files with 27 additions and 12 deletions

View file

@ -13,6 +13,7 @@ import { createMenu } from "./menu"
import { check, Update } from "@tauri-apps/plugin-updater"
import { invoke } from "@tauri-apps/api/core"
import { relaunch } from "@tauri-apps/plugin-process"
import pkg from "../package.json"
const root = document.getElementById("root")
if (import.meta.env.DEV && !(root instanceof HTMLElement)) {
@ -25,6 +26,7 @@ let update: Update | null = null
const platform: Platform = {
platform: "tauri",
version: pkg.version,
async openDirectoryPickerDialog(opts) {
const result = await open({