Skip to content

Commit

Permalink
chore(ci): bump Prettier to 3.0.2 (#28648)
Browse files Browse the repository at this point in the history
Co-authored-by: Queen Vinyl Da.i'gyu-Kazotetsu <[email protected]>
  • Loading branch information
bsmth and queengooborg authored Aug 19, 2023
1 parent fc10097 commit 6e78306
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,8 @@ async function init() {
layout: "auto",
};

const renderPipeline = await device.createRenderPipelineAsync(
pipelineDescriptor,
);
const renderPipeline =
await device.createRenderPipelineAsync(pipelineDescriptor);

// ...
}
Expand Down
5 changes: 2 additions & 3 deletions files/en-us/web/api/mediadevices/getdisplaymedia/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,8 @@ async function startCapture(displayMediaOptions) {
let captureStream;

try {
captureStream = await navigator.mediaDevices.getDisplayMedia(
displayMediaOptions,
);
captureStream =
await navigator.mediaDevices.getDisplayMedia(displayMediaOptions);
} catch (err) {
console.error(`Error: ${err}`);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ async function capture() {
}

try {
videoElem.srcObject = await navigator.mediaDevices.getDisplayMedia(
displayMediaOptions,
);
videoElem.srcObject =
await navigator.mediaDevices.getDisplayMedia(displayMediaOptions);
} catch (err) {
/* handle the error */
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ async function capture() {
}

try {
videoElem.srcObject = await navigator.mediaDevices.getDisplayMedia(
displayMediaOptions,
);
videoElem.srcObject =
await navigator.mediaDevices.getDisplayMedia(displayMediaOptions);
} catch (err) {
/* handle the error */
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,8 @@ async function capture() {
}

try {
videoElem.srcObject = await navigator.mediaDevices.getDisplayMedia(
displayMediaOptions,
);
videoElem.srcObject =
await navigator.mediaDevices.getDisplayMedia(displayMediaOptions);
} catch (err) {
/* handle the error */
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ async function capture() {
}

try {
videoElem.srcObject = await navigator.mediaDevices.getDisplayMedia(
displayMediaOptions,
);
videoElem.srcObject =
await navigator.mediaDevices.getDisplayMedia(displayMediaOptions);
} catch (err) {
/* handle the error */
}
Expand Down
5 changes: 2 additions & 3 deletions files/en-us/web/api/screen_capture_api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ The Screen Capture API is relatively simple to use. Its sole method is {{domxref
To start capturing video from the screen, you call `getDisplayMedia()` on `navigator.mediaDevices`:

```js
captureStream = await navigator.mediaDevices.getDisplayMedia(
displayMediaOptions,
);
captureStream =
await navigator.mediaDevices.getDisplayMedia(displayMediaOptions);
```

The {{jsxref("Promise")}} returned by `getDisplayMedia()` resolves to a {{domxref("MediaStream")}} which streams the captured media.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ async function startCapture(displayMediaOptions) {
let captureStream = null;

try {
captureStream = await navigator.mediaDevices.getDisplayMedia(
displayMediaOptions,
);
captureStream =
await navigator.mediaDevices.getDisplayMedia(displayMediaOptions);
} catch (err) {
console.error(`Error: ${err}`);
}
Expand Down Expand Up @@ -213,9 +212,8 @@ async function startCapture() {
logElem.innerHTML = "";

try {
videoElem.srcObject = await navigator.mediaDevices.getDisplayMedia(
displayMediaOptions,
);
videoElem.srcObject =
await navigator.mediaDevices.getDisplayMedia(displayMediaOptions);
dumpOptionsInfo();
} catch (err) {
console.error(err);
Expand Down

0 comments on commit 6e78306

Please sign in to comment.