Skip to content

Commit

Permalink
Update startup.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
linonetwo committed Jun 28, 2024
1 parent ff6a858 commit 488a54d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tidgi-external-attachments/startup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 488a54d

Please sign in to comment.