more tauri stuff (#128)
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user