Skip to content

Commit 71c4c8c

Browse files
chore: code formatting
1 parent 490a969 commit 71c4c8c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/plugins/community/screenshot/index.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ export default async function({login, q, imports, data, account}, {enabled = fal
2525
//Screenshot
2626
let content = null
2727
let image = null
28-
const metadata = {height:null, width:null}
28+
const metadata = {height: null, width: null}
2929
await page.waitForSelector(selector)
3030
switch (mode) {
31-
case "image":{
31+
case "image": {
3232
const clip = await page.evaluate(selector => {
3333
const {x, y, width, height} = document.querySelector(selector).getBoundingClientRect()
3434
return {x, y, width, height}
@@ -40,7 +40,7 @@ export default async function({login, q, imports, data, account}, {enabled = fal
4040
Object.assign(metadata, await screenshot.metadata())
4141
break
4242
}
43-
case "text":{
43+
case "text": {
4444
content = await page.evaluate(selector => document.querySelector(selector)?.innerText ?? "", selector)
4545
break
4646
}

0 commit comments

Comments
 (0)