Skip to content

Commit b285bdf

Browse files
committed
docs: miscellaneous cleanup
1 parent 3daae3b commit b285bdf

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,11 @@ Your app must provide an explanation for its use of capture devices using the `N
146146
Example:
147147

148148
```js
149-
const { askForCameraAccess } = require("node-mac-permissions");
149+
const { askForCameraAccess } = require('node-mac-permissions')
150150

151-
const status = await askForCameraAccess();
151+
askForCameraAccess().then(status => {
152+
console.log(`Access to Camera is ${status}`)
153+
})
152154
```
153155

154156
## `permissions.askForMicrophoneAccess()`
@@ -158,7 +160,7 @@ Returns `Promise<String>` - Current permission status; can be `authorized`, `den
158160
Checks the authorization status for microphone access. If the status check returns:
159161

160162
* `not determined` - The microphone access authorization will prompt the user to authorize or deny. The Promise is resolved after the user selection with either `authorized` or `denied`.
161-
* `denied` -T he `Security & Privacy` System Preferences window is opened with the Microphone privacy key highlighted. On open of the `Security & Privacy` window, the Promise is resolved as `denied`.
163+
* `denied` - The `Security & Privacy` System Preferences window is opened with the Microphone privacy key highlighted. On open of the `Security & Privacy` window, the Promise is resolved as `denied`.
162164
* `restricted` - The Promise is resolved as `restricted`.
163165

164166
Your app must provide an explanation for its use of capture devices using the `NSMicrophoneUsageDescription` `Info.plist` key; Calling this method or attempting to start a capture session without a usage description raises an exception.
@@ -175,11 +177,11 @@ Your app must provide an explanation for its use of capture devices using the `N
175177
Example:
176178

177179
```js
178-
const { askForMicrophoneAccess } = require("node-mac-permissions");
180+
const { askForMicrophoneAccess } = require('node-mac-permissions')
179181

180182
askForMicrophoneAccess().then(status => {
181183
console.log(`Access to Microphone is ${status}`)
182-
});
184+
})
183185
```
184186

185187
## `permissions.askForPhotosAccess()`
@@ -206,11 +208,11 @@ Your app must provide an explanation for its use of the photo library using the
206208
Example:
207209

208210
```js
209-
const { askForPhotosAccess } = require("node-mac-permissions");
211+
const { askForPhotosAccess } = require('node-mac-permissions')
210212

211213
askForPhotosAccess().then(status => {
212214
console.log(`Access to Photos is ${status}`)
213-
});
215+
})
214216
```
215217

216218
## `permissions.askForScreenCaptureAccess()`

0 commit comments

Comments
 (0)