Skip to content

Commit 2e946dc

Browse files
[autofix.ci] apply automated fixes
1 parent e1790c8 commit 2e946dc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

app/pages/package/[[org]]/[name].vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,7 @@ function copyViaExecCommand(text: string): boolean {
119119
textarea.select()
120120
try {
121121
return document.execCommand('copy')
122-
}
123-
finally {
122+
} finally {
124123
document.body.removeChild(textarea)
125124
}
126125
}
@@ -138,14 +137,15 @@ async function copyReadmeHandler() {
138137
try {
139138
await navigator.clipboard.writeText(markdown)
140139
success = true
141-
}
142-
catch {
140+
} catch {
143141
success = copyViaExecCommand(markdown)
144142
}
145143
146144
if (success) {
147145
copiedReadme.value = true
148-
setTimeout(() => { copiedReadme.value = false }, 2000)
146+
setTimeout(() => {
147+
copiedReadme.value = false
148+
}, 2000)
149149
}
150150
}
151151

0 commit comments

Comments
 (0)