You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've run into some error reports that I could trace back to these lines of code.
The problem is, that navigator.userAgent is expected to be a string. Some browsers behave differently and allow the user to completely suppress sending a userAgent property at all.
An easy fix would be to set a default value like this:
constua=navigator.userAgent||'';ua.match(olderEdgeUA);// <-- this is safe now
I could prepare a PR, if you're ok with the changes.
The text was updated successfully, but these errors were encountered:
I've run into some error reports that I could trace back to these lines of code.
The problem is, that
navigator.userAgent
is expected to be a string. Some browsers behave differently and allow the user to completely suppress sending auserAgent
property at all.An easy fix would be to set a default value like this:
I could prepare a PR, if you're ok with the changes.
The text was updated successfully, but these errors were encountered: