mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 09:31:22 -05:00
docs: update permissions example (#5809)
This commit is contained in:
parent
c3c16f025c
commit
2bbe475dbb
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ if (status.state !== "granted") {
|
|||
throw new Error("need write permission");
|
||||
}
|
||||
|
||||
const log = await Deno.open("request.log", "a+");
|
||||
const log = await Deno.open("request.log", { write: true, append: true });
|
||||
|
||||
// revoke some permissions
|
||||
await Deno.permissions.revoke({ name: "read" });
|
||||
|
|
Loading…
Add table
Reference in a new issue