Is there a way detect when browser (re)started and session restored?
I've tried
chrome.sessions.onChanged.addListener((...args) =>
{
console.log("chrome.sessions.onChanged fired", args);
});
but nothing logged.
I'm trying store some data for each tab and since tab.id and tab.windowId changes each time browser (re)started, I need to get notified when session is restored on startup, so I could update tabs database with new data.