To prevent the extension from needlessly keeping the event page from going inactive, move this check outside `setInterval`'s callback function. You can use the global storage event to detect changes in the storage area, and enable/disable the poller based on that information.