We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b45eb0b commit 211ba46Copy full SHA for 211ba46
1 file changed
src/utils/index.ts
@@ -1,6 +1,7 @@
1
import { useEffect, useState } from "react";
2
+import { open } from "@tauri-apps/plugin-shell";
3
-import { hide_coco } from "@/commands"
4
+import { hide_coco } from "@/commands";
5
import platformAdapter from "./platformAdapter";
6
7
// 1
@@ -57,8 +58,8 @@ export function useWindowSize() {
57
58
export const IsTauri = () => {
59
return Boolean(
60
typeof window !== "undefined" &&
- window !== undefined &&
61
- (window as any).__TAURI_INTERNALS__ !== undefined
+ window !== undefined &&
62
+ (window as any).__TAURI_INTERNALS__ !== undefined
63
);
64
};
65
0 commit comments