diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2020-07-09 19:00:18 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-09 05:00:18 -0400 |
commit | 202e7fa6ad366ee56a6d070e94eaecb6dbc745bf (patch) | |
tree | 745481e627ff691e0c196c18c310e54a8794badf /cli/js/web/navigator.ts | |
parent | e92cf5b9e8530f7edf5cb7b157e6334a013da10d (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.ts | 12 |
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, +}); |