mirror of
https://github.com/koel/koel
synced 2024-11-24 21:23:06 +00:00
Use ES2015 string literal
This commit is contained in:
parent
0b8594d006
commit
94c1365d2a
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ export function hideOverlay () {
|
|||
*/
|
||||
export function copyText (txt) {
|
||||
const copyArea = document.querySelector('#copyArea')
|
||||
copyArea.style.top = (window.pageYOffset || document.documentElement.scrollTop) + 'px'
|
||||
copyArea.style.top = `${window.pageYOffset || document.documentElement.scrollTop}px`
|
||||
copyArea.value = txt
|
||||
select(copyArea)
|
||||
document.execCommand('copy')
|
||||
|
|
Loading…
Reference in a new issue