From 1f27869c748082bc0a11ced78bf4d8fa76a01de6 Mon Sep 17 00:00:00 2001 From: Avoo Date: Tue, 7 Nov 2023 21:39:28 +0100 Subject: [PATCH] fix tauri type errors --- src/misc/util/url.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/misc/util/url.ts b/src/misc/util/url.ts index 7c3725b..c6111d1 100644 --- a/src/misc/util/url.ts +++ b/src/misc/util/url.ts @@ -7,7 +7,7 @@ export const getE6PostUrl = (id: number) => { export const openUrlInNewTab = (url: string) => { if ("__TAURI__" in window) { - window.__TAURI__.shell.open(url); + (window as any).__TAURI__.shell.open(url); return; } const win = window.open(url, "_blank", "noopener");