Skip to content

Commit

Permalink
Add IMJS_USE_DEFAULT_POPOUT_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
GerardasB committed Jan 16, 2025
1 parent cc00785 commit 717173c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions apps/test-app/.env.template
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ IMJS_IMODEL_VIEWID=
IMJS_ELECTRON_NO_DEV_TOOLS=
# Used to toggle the environments.
IMJS_URL_PREFIX=
# If defined, uses the default popout URL.
IMJS_USE_DEFAULT_POPOUT_URL=
3 changes: 2 additions & 1 deletion apps/test-app/src/frontend/AppInitializer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ function createInitializer() {
toolbarOpacity: 0.5,
})
);
UiFramework.useDefaultPopoutUrl = true;

UiFramework.useDefaultPopoutUrl = config.useDefaultPopoutUrl;
await UiFramework.initializeStateFromUserSettingsProviders();

UiFramework.keyboardShortcuts.loadShortcuts(createKeyboardShortcuts());
Expand Down
1 change: 1 addition & 0 deletions apps/test-app/src/frontend/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ function createConfig() {
bingMapsKey: import.meta.env.IMJS_BING_MAPS_KEY as string,
cesiumIonKey: import.meta.env.IMJS_CESIUM_ION_KEY as string,
mapBoxKey: import.meta.env.IMJS_MAPBOX_KEY as string,
useDefaultPopoutUrl: Boolean(import.meta.env.IMJS_USE_DEFAULT_POPOUT_URL),
serverEnvironmentPrefix,
urlPrefix,
} as const;
Expand Down

0 comments on commit 717173c

Please sign in to comment.