jsPsych icon indicating copy to clipboard operation
jsPsych copied to clipboard

replace `navigator.userAgent` with `navigator.userAgentData`

Open jodeleeuw opened this issue 2 years ago • 1 comments

Mainly needed for the browser-check plugin. navigator.userAgent is going to be less revealing soon, probably breaking the parsing that is in there.

  • https://web.dev/user-agent-client-hints/
  • https://developer.mozilla.org/en-US/docs/Web/API/Navigator/userAgentData
  • https://developer.mozilla.org/en-US/docs/Web/API/User-Agent_Client_Hints_API

jodeleeuw avatar Dec 10 '21 15:12 jodeleeuw

https://github.com/jspsych/jsPsych/blob/main/packages/plugin-browser-check/src/index.ts

It appears here is where bulk of changes need to be made

alecgarza96 avatar Mar 01 '22 19:03 alecgarza96