mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-10 23:57:27 +02:00
log clipboard sync error.
This commit is contained in:
parent
541ca80878
commit
1ce6dad973
1 changed files with 4 additions and 2 deletions
|
@ -96,10 +96,12 @@ func (ws *WebSocketHandler) Start() {
|
|||
if text != current {
|
||||
session, ok := ws.sessions.GetHost()
|
||||
if ok {
|
||||
session.Send(message.Clipboard{
|
||||
if err := session.Send(message.Clipboard{
|
||||
Event: event.CONTROL_CLIPBOARD,
|
||||
Text: text,
|
||||
})
|
||||
}); err != nil {
|
||||
ws.logger.Warn().Err(err).Msg("could not sync clipboard")
|
||||
}
|
||||
}
|
||||
current = text
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue