v0.9.5
This commit is contained in:
+2
-3
@@ -74,17 +74,16 @@ function applyRouteFromLocation() {
|
||||
const hours = params.get('hours');
|
||||
if (hours && ['6', '24', '168', '720', '2160', '8760'].includes(hours) && $('#historyHours')) $('#historyHours').value = hours;
|
||||
if (app.historyTab === 'custom' && params.get('chart')) app.customChartSeries = decodeChartSpec(params.get('chart'));
|
||||
if (!showView('history', {push: false, scroll: false})) restoreCurrentRoute(previousView);
|
||||
if (!showView('history', { push: false, scroll: false })) restoreCurrentRoute(previousView);
|
||||
return;
|
||||
}
|
||||
|
||||
const view = first === 'index.html' ? 'dashboard' : ROUTE_VIEWS[`/${first}`];
|
||||
if (!showView(view || 'dashboard', {push: false, scroll: false})) {
|
||||
if (!showView(view || 'dashboard', { push: false, scroll: false })) {
|
||||
restoreCurrentRoute(previousView);
|
||||
return;
|
||||
}
|
||||
|
||||
// Keep a canonical URL for the application root and legacy /index.html entry point.
|
||||
if (!parts.length || first === 'index.html') updateBrowserUrl(VIEW_ROUTES.dashboard, true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user