fix: fix apps and articles not opening (#339)

* fix: fix apps and articles not opening

* style: adjusting the order of import statements
This commit is contained in:
ayangweb
2025-04-08 15:48:59 +08:00
committed by GitHub
parent b45eb0b91d
commit 211ba463d0

View File

@@ -1,6 +1,7 @@
import { useEffect, useState } from "react"; import { useEffect, useState } from "react";
import { open } from "@tauri-apps/plugin-shell";
import { hide_coco } from "@/commands" import { hide_coco } from "@/commands";
import platformAdapter from "./platformAdapter"; import platformAdapter from "./platformAdapter";
// 1 // 1
@@ -57,8 +58,8 @@ export function useWindowSize() {
export const IsTauri = () => { export const IsTauri = () => {
return Boolean( return Boolean(
typeof window !== "undefined" && typeof window !== "undefined" &&
window !== undefined && window !== undefined &&
(window as any).__TAURI_INTERNALS__ !== undefined (window as any).__TAURI_INTERNALS__ !== undefined
); );
}; };