navigator.platform "deprecated"
kid-icarus opened this issue · comments
Just wondering what your thoughts are on platform being deprecated despite the fact that it's still supported everywhere.
I was having an internal debate about detecting which key is effectively Mod
, and noticed you use navigator.platform
to do just that.
Feel free to close, I just wanted to see if you were considering an alternative, as user agent parsing heuristics are bloated at best.
Someday we'll be able to use navigator.userAgentData.platform
but I doubt navigator.platform
can ever actually be removed from the web, it may just become less useful with time (if new platforms start filling it with garbage or something).