From 488a54d0ce5258bd83026c8015d50624f1df3475 Mon Sep 17 00:00:00 2001 From: lin onetwo Date: Fri, 28 Jun 2024 22:28:19 +0800 Subject: [PATCH] Update startup.ts --- src/tidgi-external-attachments/startup.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tidgi-external-attachments/startup.ts b/src/tidgi-external-attachments/startup.ts index b016a89..11991f2 100644 --- a/src/tidgi-external-attachments/startup.ts +++ b/src/tidgi-external-attachments/startup.ts @@ -20,7 +20,7 @@ exports.after = ['startup']; exports.synchronous = true; exports.startup = function() { - const isTidGi = typeof window !== 'undefined' && window.meta !== undefined && 'workspaceID' in window.meta; + const isTidGi = typeof window !== 'undefined' && typeof window.meta === 'function'; if (!isTidGi) return; const workspaceID = window?.meta?.()?.workspaceID; if (!workspaceID) return;