mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 19:08:15 +00:00
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:
parent
44187c81f4
commit
11560387bb
15 changed files with 236 additions and 396 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue