summaryrefslogtreecommitdiff
path: root/cli/js/web/navigator.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/web/navigator.ts')
-rw-r--r--cli/js/web/navigator.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/cli/js/web/navigator.ts b/cli/js/web/navigator.ts
new file mode 100644
index 000000000..351c311d0
--- /dev/null
+++ b/cli/js/web/navigator.ts
@@ -0,0 +1,12 @@
+// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
+
+import { PermissionsImpl as Permissions } from "./permissions.ts";
+
+export class NavigatorImpl implements Navigator {
+ permissions = new Permissions();
+}
+
+Object.defineProperty(NavigatorImpl, "name", {
+ value: "Navigator",
+ configurable: true,
+});