1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-15 11:58:42 -05:00
denoland-deno/cli/tests/testdata/workers/worker_navigator.ts
await-ovo 41cad2179f
fix(runtime): navigator.userAgent in web worker (#20129)
Fixes https://github.com/denoland/deno/issues/20079

---------

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-08-15 17:04:36 +02:00

11 lines
229 B
TypeScript

onmessage = function () {
postMessage(
[
typeof navigator.language,
typeof navigator.languages,
typeof navigator.userAgent,
typeof navigator.hardwareConcurrency,
].join(", "),
);
close();
};