summaryrefslogtreecommitdiff
path: root/cli/js/web/navigator.ts
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2020-07-09 19:00:18 +1000
committerGitHub <noreply@github.com>2020-07-09 05:00:18 -0400
commit202e7fa6ad366ee56a6d070e94eaecb6dbc745bf (patch)
tree745481e627ff691e0c196c18c310e54a8794badf /cli/js/web/navigator.ts
parente92cf5b9e8530f7edf5cb7b157e6334a013da10d (diff)
feat: move unstable Deno.permissions to navigator.permissions (#6244)
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,
+});