forked from shibao/cannery
rename to cannery
This commit is contained in:
@ -60,7 +60,7 @@ liveSocket.connect()
|
||||
window.liveSocket = liveSocket
|
||||
|
||||
// Copy to clipboard
|
||||
window.addEventListener('lokal:clipcopy', (event) => {
|
||||
window.addEventListener('cannery:clipcopy', (event) => {
|
||||
if ('clipboard' in navigator) {
|
||||
const text = event.target.textContent
|
||||
navigator.clipboard.writeText(text)
|
||||
|
Reference in New Issue
Block a user