Inputmask icon indicating copy to clipboard operation
Inputmask copied to clipboard

Plans for removal of `navigator.userAgent`

Open stsrki opened this issue 3 years ago • 1 comments

Hello.

Recently we received a notification from one of our users to let us know that Google is making the navigator.userAgent obsolete. According to this documentation https://blog.chromium.org/2021/05/update-on-user-agent-string-reduction.html

I must admit I wasn't aware that this was a problem so it got me a little off guard. So I had to check where it is used and indeed it was used in a few places, where Inputmask library was one of them.

My question is. Are there any plans to remove the usage of navigator.userAgent from Inputmask?

stsrki avatar Dec 03 '21 11:12 stsrki

@stsrki ,

Thx for the info. I will read the documentation and see how to make the necessary changes.

RobinHerbots avatar Dec 14 '21 13:12 RobinHerbots

@stsrki,

For backward compatiobility it's best to use both features. I can use the userAgentData if available and otherwise fallback to the old useragent string. I will push a commit soon.

RobinHerbots avatar Nov 28 '22 20:11 RobinHerbots

@RobinHerbots thanks!

stsrki avatar Nov 29 '22 07:11 stsrki