I have an existing Auto-reload Chrome extension using manifest version 2. It is achieved by using a background page with persistent: true
so a setInterval
can run indefinitely. Chrome is phasing out MV2 soon so I want to upgrade it realized it's difficult with service worker replacement.
The Service Worker would become inactive after about 30 seconds so
setTimeout
orsetInterval
is out of question.chrome.alarms only run once every minute and with inaccuracies. My extension provides options under a minute like 10s or 30s.
What is a solution for a general frequent timer like my case?