Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: do not call WakeLock on Web (mobile) #7668

Merged
merged 2 commits into from
Apr 10, 2024

Conversation

TBG-FR
Copy link
Contributor

@TBG-FR TBG-FR commented Apr 9, 2024

While doing tests and researchs for #7667 I stumbled upon a small issue

Uncaught ReferenceError: "Wakelock is not defined"

I've done the same thing as in flutter/lib/desktop/pages/remote_page.dart, making Wakelock usage exclusive to non-web apps https://github.com/rustdesk/rustdesk/blob/master/flutter/lib/desktop/pages/remote_page.dart#L128

@rustdesk
Copy link
Owner

But, I still prefer !isWeb

@TBG-FR
Copy link
Contributor Author

TBG-FR commented Apr 10, 2024

But, I still prefer !isWeb

Understandable, done.

@rustdesk rustdesk merged commit c972452 into rustdesk:master Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants