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;