fix os type calculation and bump version

This commit is contained in:
2023-09-11 16:18:05 -07:00
parent e3913ab4c9
commit 51fcccafa2
5 changed files with 17 additions and 9 deletions

View File

@ -1,11 +1,6 @@
<script context="module">
import { type } from '@tauri-apps/api/os';
const osType = await type();
</script>
<script>
import { invoke } from '@tauri-apps/api/tauri';
import { type } from '@tauri-apps/api/os';
import { appState } from '../lib/state.js';
import Nav from '../ui/Nav.svelte';
@ -30,6 +25,9 @@
$appState.config = await invoke('get_config');
}
}
let osType = null;
type().then(t => osType = t);
</script>