NoSleep.js icon indicating copy to clipboard operation
NoSleep.js copied to clipboard

fix: Not working in Opera for Android

Open suxscribe opened this issue 3 years ago • 0 comments

This PR contains a:

  • [x] bugfix
  • [ ] new feature
  • [ ] code refactor
  • [ ] test update
  • [ ] typo fix
  • [ ] metadata update

Motivation / Use-Case

Fix of https://github.com/richtr/NoSleep.js/issues/154 Opera for Android has support for Wake Lock API, but it won't let you enable a wakelock probably due to some permissions issues. This change skips native wakelock support check for Opera and uses fallback to video instead.

suxscribe avatar Dec 30 '22 13:12 suxscribe