mirror of
https://github.com/infinilabs/coco-app.git
synced 2025-12-16 19:47:43 +01:00
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:
@@ -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
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user