C
C
creatoroftheworld2019-02-18 01:14:31
JavaScript
creatoroftheworld, 2019-02-18 01:14:31

So that chrome does not mute the tab, namely audio playback (chrome extension)?

There is an unpacked extension that inserts a script into a page of a specific domain. The script simply accesses the DOM every second and if it matches one condition, it plays an audio, notifying me that something has changed there.
If I sit on another tab for a long time, then audio stops playing over time. The most important thing is that the script itself seems to continue to work (for the test, the console logged the current time every second), but the notification does not work. How to make it work even if I sit in another tab for a long time?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2019-02-18
@Stalker_RED

Chrome has been experimenting for a long time with slowing down, or even completely "lulling" inactive tabs.
Try to display not just the current time, but also whether there are changes on the tab.
Perhaps the checking script works stably, but there are no changes on the target tab itself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question