From 211ba463d0ff1b4d0ffcf766a02ae09c8ff09a17 Mon Sep 17 00:00:00 2001 From: ayangweb <75017711+ayangweb@users.noreply.github.com> Date: Tue, 8 Apr 2025 15:48:59 +0800 Subject: [PATCH] fix: fix apps and articles not opening (#339) * fix: fix apps and articles not opening * style: adjusting the order of import statements --- src/utils/index.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/utils/index.ts b/src/utils/index.ts index e923a66b..887a0252 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -1,6 +1,7 @@ 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"; // 1 @@ -57,8 +58,8 @@ export function useWindowSize() { export const IsTauri = () => { return Boolean( typeof window !== "undefined" && - window !== undefined && - (window as any).__TAURI_INTERNALS__ !== undefined + window !== undefined && + (window as any).__TAURI_INTERNALS__ !== undefined ); };