summaryrefslogtreecommitdiff
path: root/runtime/worker_bootstrap.rs
diff options
context:
space:
mode:
authorrandomicon00 <20146907+randomicon00@users.noreply.github.com>2022-05-14 11:00:02 +0100
committerGitHub <noreply@github.com>2022-05-14 12:00:02 +0200
commitf82a79ffdbc6b8f2fc4bbe6174ad33cb22e64386 (patch)
treeb8a6021de1157fe0cb70036a9eef79a4a2d0cac1 /runtime/worker_bootstrap.rs
parent20ee3110d84c72f4a28cc5c9083b5dda47181602 (diff)
feat: add userAgent property to Navigator's prototype (#14415)
Diffstat (limited to 'runtime/worker_bootstrap.rs')
-rw-r--r--runtime/worker_bootstrap.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/worker_bootstrap.rs b/runtime/worker_bootstrap.rs
index f1ffd1b3d..68f223be5 100644
--- a/runtime/worker_bootstrap.rs
+++ b/runtime/worker_bootstrap.rs
@@ -20,6 +20,7 @@ pub struct BootstrapOptions {
/// Sets `Deno.version.typescript` in JS runtime.
pub ts_version: String,
pub unstable: bool,
+ pub user_agent: String,
}
impl BootstrapOptions {
@@ -42,6 +43,7 @@ impl BootstrapOptions {
"ppid": ppid(),
"target": env!("TARGET"),
"v8Version": deno_core::v8_version(),
+ "userAgent": self.user_agent,
});
serde_json::to_string_pretty(&payload).unwrap()
}