Store focused tab to localStorage and select it at startup.