Skip to content

Conversation

@koji-1009
Copy link
Contributor

Description

link #2709 (comment)

This PR fix a problem in the release build where DOMException cannot be try-catch.
The problem occurs in Desktop browsers where the Sensors API is not available.

Related Issues

Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I titled the PR using Conventional Commits.
  • I did not modify the CHANGELOG.md nor the plugin version in pubspec.yaml files.
  • All existing and new tests are passing.
  • The analyzer (flutter analyze) does not report any problems on my PR.

Breaking Change

Does your PR require plugin users to manually update their apps to accommodate your change?

  • Yes, this is a breaking change (please indicate that with a ! in the title as explained in Conventional Commits).
  • No, this is not a breaking change.

@koji-1009
Copy link
Contributor Author

@koji-1009 koji-1009 marked this pull request as ready for review March 17, 2024 13:00
@miquelbeltran
Copy link
Member

Thanks for the fix!

@miquelbeltran miquelbeltran merged commit c37acd6 into fluttercommunity:main Mar 17, 2024
@koji-1009 koji-1009 deleted the fix/sensors_plus_error branch March 18, 2024 00:31
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants