background/background.js
/* 
  Trigger user interaction when tab is updated
*/
Trigger user interaction when tab is updated
Trigger user interaction when tab is updated
async function OnTabUpdated(tabId, changeInfo, tabInfo) {
  if (changeInfo.status && changeInfo.status === "complete") {
    clearTimeout(_idleTimeout);
    _idleTimeout = setTimeout(onUserInteraction, minIdleTime);
  }
}
async function OnTabUpdated ( tabId , changeInfo , tabInfo ) { if ( changeInfo . status && changeInfo . status === "complete" ) { clearTimeout ( _idleTimeout ) ; _idleTimeout = setTimeout ( onUserInteraction , minIdleTime ) ; } }
Trigger user interaction when tab is updated
Trigger user interaction when tab is updated