Skip to content

Commit 211ba46

Browse files
authored
fix: fix apps and articles not opening (#339)
* fix: fix apps and articles not opening * style: adjusting the order of import statements
1 parent b45eb0b commit 211ba46

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/utils/index.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { useEffect, useState } from "react";
2+
import { open } from "@tauri-apps/plugin-shell";
23

3-
import { hide_coco } from "@/commands"
4+
import { hide_coco } from "@/commands";
45
import platformAdapter from "./platformAdapter";
56

67
// 1
@@ -57,8 +58,8 @@ export function useWindowSize() {
5758
export const IsTauri = () => {
5859
return Boolean(
5960
typeof window !== "undefined" &&
60-
window !== undefined &&
61-
(window as any).__TAURI_INTERNALS__ !== undefined
61+
window !== undefined &&
62+
(window as any).__TAURI_INTERNALS__ !== undefined
6263
);
6364
};
6465

0 commit comments

Comments
 (0)