We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
isTauri
1 parent 1bb87a3 commit aa08069Copy full SHA for aa08069
.changes/api-isTauri-type.md
@@ -0,0 +1,5 @@
1
+---
2
+"@tauri-apps/api": "patch:bug"
3
4
+
5
+Fix `isTauri` incorrect return type.
tooling/api/src/core.ts
@@ -238,8 +238,8 @@ export class Resource {
238
}
239
240
241
-function isTauri() {
242
- return 'isTauri' in window && window.isTauri
+function isTauri(): boolean {
+ return 'isTauri' in window && !!window.isTauri
243
244
245
export type { InvokeArgs, InvokeOptions }
0 commit comments