more tauri stuff (#128)

This commit is contained in:
Kurt Hutten
2023-06-19 10:16:45 +10:00
committed by GitHub
parent e7c1554129
commit 0858d32c1e
11 changed files with 363 additions and 18 deletions

View File

@ -3,6 +3,8 @@ import init from '../wasm-lib/pkg/wasm_lib'
const url =
typeof window === 'undefined'
? 'http://127.0.0.1:3000'
: window.location.origin.includes('tauri://localhost')
? 'tauri://localhost'
: window.location.origin.includes('localhost')
? 'http://127.0.0.1:3000'
: window.location.origin