You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, my Wake Lock extension does not know when a wake lock has been released. A wake lock can be released for reasons as simple as navigating away from the browser tab it was set in. Fortunately, you can add an event listener for when the wake lock is released.
I'll try to make some changes later.
The text was updated successfully, but these errors were encountered:
Resolves#1120
Currently, if you request a wake lock with the Wake Lock extension and
then navigate away from the page, the wake lock gets released in the
background because wake locks are automatically released when the
document gets hidden, plus, the extension isn't aware of when this
happens, so you have no way of knowing.
This change makes the extension automatically request another wake lock
when the document regains visibility after having been hidden. It still
reports to the project that the wake lock is enabled when this happens,
therefore projects will act like nothing happened but the wake lock will
still be there as long as you come back. I also considered the
possibility of projects enabling or disabling wake lock when the
document is hidden and now handle it properly.
I tested these changes in Edge to the best of my ability.
Currently, my Wake Lock extension does not know when a wake lock has been released. A wake lock can be released for reasons as simple as navigating away from the browser tab it was set in. Fortunately, you can add an event listener for when the wake lock is released.
I'll try to make some changes later.
The text was updated successfully, but these errors were encountered: