fix: windows build broke

This commit is contained in:
2023-08-04 21:35:02 +02:00
parent 86476cfdd8
commit a134b970ee
4 changed files with 4 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "amacc1ng",
"version": "0.4.0",
"version": "0.4.1",
"license": "AGPL-3.0-or-later",
"private": true,
"scripts": {

View File

@@ -1,6 +1,6 @@
[package]
name = "app"
version = "0.4.0"
version = "0.4.1"
description = "A Tauri App"
authors = ["Thea Schöbl <dev@theaninova.de>"]
license = "AGPL-3"

View File

@@ -8,7 +8,7 @@
},
"package": {
"productName": "amacc1ng",
"version": "0.4.0"
"version": "0.4.1"
},
"tauri": {
"allowlist": {

View File

@@ -6,7 +6,7 @@ import {browser} from "$app/environment"
export const VENDOR_ID = 0x239a
if (browser && import.meta.env.TAURI_FAMILY !== undefined) {
if (browser && navigator.serial === undefined && import.meta.env.TAURI_FAMILY !== undefined) {
await import("./tauri-serial")
}