Update vueapp.js

This commit is contained in:
booploops 2022-04-28 22:30:24 -07:00
parent 07f2b3f1a3
commit 4f93124416

View file

@ -1255,12 +1255,12 @@ const app = new Vue({
})
},
copyToClipboard(str) {
if (navigator.userAgent.includes('Darwin') || navigator.appVersion.indexOf("Mac") != -1) {
this.darwinShare(str)
} else {
// if (navigator.userAgent.includes('Darwin') || navigator.appVersion.indexOf("Mac") != -1) {
// this.darwinShare(str)
// } else {
notyf.success(app.getLz('term.share.success'))
navigator.clipboard.writeText(str).then(r => console.log("Copied to clipboard."))
}
// }
},
newPlaylist(name = app.getLz('term.newPlaylist'), tracks = []) {
let self = this
@ -2936,7 +2936,8 @@ const app = new Vue({
endTime: end,
line: xline[2],
translation: ''
})}
})
}
}
if (preLrc.length > 0)
preLrc.push({
@ -3008,7 +3009,8 @@ const app = new Vue({
endTime: end,
line: xline[2],
translation: ''
})}
})
}
}
if (preLrc.length > 0)
preLrc.push({