Tarun Talreja
Tarun Talreja

Reputation: 175

Alternatives to browser.alarms for Edge extensions

I ported an extension from Chrome to Microsoft Edge.The extension works properly in Chrome, but in Edge it has some issues.

One of these issues is that Edge does not support browser.alarms.

For Edge extensions, what are the alternatives to using browser.alarms?

Upvotes: 3

Views: 376

Answers (1)

Tarun Talreja
Tarun Talreja

Reputation: 175

I did all the research and came to the conclusion that alarms can be replaced simply using the setTimeout function of JavaScript . The function written in browser.alarms.onAlarm.addListener should be written in the 1st parameter of setTimeout() function and currently for clearing the cache programmatically access to browser internal functionality is required which is currently not implemented in Microsoft Edge .

Upvotes: 1

Related Questions