luciopaiva / witchcraft

Inject Javascript and CSS right from your file system. Think GreaseMonkey for more advanced users.
https://luciopaiva.com/witchcraft
MIT License
254 stars 18 forks source link

Background being unloaded by Chrome due to inactivity #35

Open luciopaiva opened 3 years ago

luciopaiva commented 3 years ago

This is "issue 1" as referred to by the discussion in #30. Google Chrome can unload the background page on its own will and the extension must be programmed to handle it properly. As it is now, Witchcraft can fail if the user opens the pop-up window when the background page is marked as "inactive" by Chrome.

Reference: https://stackoverflow.com/a/26073197/778272