background/background.js
/*
  Acquire active tabs and process them on user interaction
*/
Acquire active tabs and process them on user interaction
Acquire active tabs and process them on user interaction
async function onUserInteraction() {
  _lastUserInteractionTime = new Date();
  let activeTabs = await browser.tabs.query({ active: true });
  _settings = await settings_get();
  initializeNewSessions(activeTabs);
  finalizeDeadSessions(activeTabs);
}
async function onUserInteraction ( ) { _lastUserInteractionTime = new Date ( ) ; let activeTabs = await browser . tabs . query ( { active : true } ) ; _settings = await settings_get ( ) ; initializeNewSessions ( activeTabs ) ; finalizeDeadSessions ( activeTabs ) ; }
Acquire active tabs and process them on user interaction
Acquire active tabs and process them on user interaction