Skip to content

Commit 7dcbddd

Browse files
authored
Add landingView query param enabling view focus on launch (#197)
* Temporary Commit at 8/1/2025, 11:24:13 PM * Temporary Commit at 8/1/2025, 11:24:13 PM * shelve changes to: Temporary Commit at 8/1/2025, 11:24:13 PM * shelve changes to: Temporary Commit at 8/1/2025, 11:24:13 PM * Remove isReactNative check
1 parent a7e4f59 commit 7dcbddd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

front_end/entrypoints/main/MainImpl.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,12 @@ export class MainImpl {
571571
Timeline.TimelinePanel.LoadTimelineHandler.instance().handleQueryParam(value);
572572
}
573573

574+
// Allow &landingView query param to override the default landing view.
575+
const landingView = Root.Runtime.Runtime.queryParam('landingView');
576+
if (landingView !== null) {
577+
await UI.ViewManager.ViewManager.instance().showView(landingView);
578+
}
579+
574580
// Initialize ARIAUtils.alert Element
575581
UI.ARIAUtils.getOrCreateAlertElements();
576582
UI.DockController.DockController.instance().announceDockLocation();

0 commit comments

Comments
 (0)