Revert "feat: move unstable Deno.permissions to navigator.permissions… (#6729)

* Revert "feat: move unstable Deno.permissions to navigator.permissions (#6244)"

This reverts commit 202e7fa6ad.
This commit is contained in:
Bartek Iwańczuk 2020-07-13 18:23:24 +02:00 committed by GitHub
parent 44187c81f4
commit 11560387bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 236 additions and 396 deletions

View file

@ -42,7 +42,7 @@ export function fmtPerms(perms: Permissions): string {
}
const isGranted = async (name: Deno.PermissionName): Promise<boolean> =>
(await navigator.permissions.query({ name })).state === "granted";
(await Deno.permissions.query({ name })).state === "granted";
export async function getProcessPermissions(): Promise<Permissions> {
return {