Skip to content

Commit

Permalink
Update constants.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
felipe-lemos committed May 14, 2024
1 parent 80d41a8 commit 3604f7d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion translator-mc-app/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ declare const window: Window &
};

export const entryPointUriPath =
typeof window === 'undefined' ? 'translator' : window.app.entryPointUriPath;
typeof window === 'undefined'
? process.env.ENTRY_POINT_URI_PATH || 'visualizer'
: window.app.entryPointUriPath;

export const PERMISSIONS = entryPointUriPathToPermissionKeys(
entryPointUriPath!
Expand Down

0 comments on commit 3604f7d

Please sign in to comment.