You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/actions/ui.js
+1-10
Original file line number
Diff line number
Diff line change
@@ -78,16 +78,7 @@ export function matchContentToUrl (location) {
78
78
dispatch(setMapCenter({ lat, lon }))
79
79
dispatch(setMapZoom({ zoom }))
80
80
// If router ID is provided, override the default routerId.
81
-
if(routerId){
82
-
// This is a somewhat hidden element of the trip planner, so show a
83
-
// confirmation message to the user to ensure they are aware of what
84
-
// is happening.
85
-
constuseAltRouterId=window.confirm(
86
-
`The trip planner's router is set to ${routerId}.\n\nClick OK to confirm or Cancel to use the default router.\n\nNote: new sessions opened with URLs copied from this tab's address bar will not reference the correct router (must contain the #/start/lat/lon/zoom/router prefix).`
87
-
)
88
-
if(useAltRouterId)dispatch(setRouterId(routerId))
89
-
elsedispatch(setRouterId(null))
90
-
}
81
+
if(routerId)dispatch(setRouterId(routerId))
91
82
dispatch(setMainPanelContent(null))
92
83
break
93
84
// For any other route path, just revert to default panel.
0 commit comments