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

Check if userAgent is empty #2471

Merged
merged 1 commit into from Sep 14, 2019
Merged

Check if userAgent is empty #2471

merged 1 commit into from Sep 14, 2019

Conversation

listton
Copy link
Contributor

@listton listton commented Sep 10, 2019

Some browsers allow to have empty userAgent. Therefore, we need to check ua before using "indexOf" on it.

Some browsers allow to have empty userAgent. Therefore, we need to check ua before using "indexOf" on it.
@rejas
Copy link
Member

rejas commented Sep 10, 2019

Thx for the PR. Could you specify in it too which browsers for example are doing this?

@listton
Copy link
Contributor Author

listton commented Sep 14, 2019

Thx for the PR. Could you specify in it too which browsers for example are doing this?

It is certainly possible in different versions of Chrome, Firefox, Opera and Edge. There are many articles "How to change user agent" and "How to remove user agent", for example: https://www.maketecheasier.com/change-user-agents-chrome-firefox-edge/

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