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

feat: add API to check browser info #3

Merged
merged 1 commit into from
Oct 12, 2023
Merged

Conversation

brycetham
Copy link
Collaborator

This PR adds a BrowserInfo class to check certain details about the browser such as browser name and browser version.

I went back and forth on whether or not these should be standalone utility functions or if they should be wrapped inside a BrowserInfo class. I decided on the latter for 2 reasons:

  1. It matches what the WebCapabilities class is currently doing.
  2. It allows Browser.getParser to only need to be called once.

Copy link

@bbaldino bbaldino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@brycetham brycetham merged commit 2e92a27 into main Oct 12, 2023
1 check passed
github-actions bot pushed a commit that referenced this pull request Oct 12, 2023
# [1.1.0](v1.0.0...v1.1.0) (2023-10-12)

### Features

* add API to check browser info ([#3](#3)) ([2e92a27](2e92a27))
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.

2 participants