Open kt3k opened 5 months ago
navigator.platform is available in many runtimes such as: Browsers, Node.js (>=v21, experimental), and Bun. If this is available in Deno, platform detection can be very easily done in a cross-runtime way.
navigator.platform
related: https://github.com/nodejs/node/pull/50385
I think we should do this, even though it's deprecated (documentation).
navigator.platform
is available in many runtimes such as: Browsers, Node.js (>=v21, experimental), and Bun. If this is available in Deno, platform detection can be very easily done in a cross-runtime way.