mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-08-16 19:30:27 +03:00
fix(core): fix incorrect isTauri
return type (#9618)
This commit is contained in:
parent
1bb87a3a22
commit
aa080696e0
5
.changes/api-isTauri-type.md
Normal file
5
.changes/api-isTauri-type.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"@tauri-apps/api": "patch:bug"
|
||||
---
|
||||
|
||||
Fix `isTauri` incorrect return type.
|
@ -238,8 +238,8 @@ export class Resource {
|
||||
}
|
||||
}
|
||||
|
||||
function isTauri() {
|
||||
return 'isTauri' in window && window.isTauri
|
||||
function isTauri(): boolean {
|
||||
return 'isTauri' in window && !!window.isTauri
|
||||
}
|
||||
|
||||
export type { InvokeArgs, InvokeOptions }
|
||||
|
Loading…
Reference in New Issue
Block a user