NoSleep.js
NoSleep.js copied to clipboard
fix: Not working in Opera for Android
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.