Soy novato en la extensión de Chrome y necesito ayuda en este caso, tengo un problema en el que setTimeout no funciona correctamente, se está volviendo loco así 15 segundos, 10 segundos, 1 segundo, 1 segundo, 1 segundo ... También intenté use setInterval pero tengo el mismo problema
chrome.webNavigation.onErrorOccurred.addListener(info => { if (!info.frameId && (info.error === 'net::ERR_NAME_NOT_RESOLVED' || 'net::ERR_TUNNEL_CONNECTION_FAILED')) { console.log(info) setTimeout(timeoutTrigger(info),15000) } }); function timeoutTrigger(info) { chrome.tabs.update(info.tabId, {url: info.url}); }