This commit is contained in:
gorhill 2016-12-03 14:03:28 -05:00
parent 235d1266e8
commit 4837b15895
1 changed files with 3 additions and 1 deletions

View File

@ -40,7 +40,9 @@ var resizeFrame = function() {
var loadDashboardPanel = function() { var loadDashboardPanel = function() {
var pane = window.location.hash.slice(1); var pane = window.location.hash.slice(1);
if ( pane === '' ) { if ( pane === '' ) {
pane = 'settings.html'; pane = vAPI.localStorage.getItem('dashboardLastVisitedPane') || 'settings.html';
} else {
vAPI.localStorage.setItem('dashboardLastVisitedPane', pane);
} }
var tabButton = uDom('[href="#' + pane + '"]'); var tabButton = uDom('[href="#' + pane + '"]');
if ( !tabButton || tabButton.hasClass('selected') ) { if ( !tabButton || tabButton.hasClass('selected') ) {