mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-25 14:07:58 +02:00
+ CanAccessClipboard.
This commit is contained in:
parent
5edd9dc97a
commit
e17e2cb606
2 changed files with 10 additions and 2 deletions
|
@ -121,6 +121,11 @@ func (ws *WebSocketManagerCtx) Start() {
|
|||
break
|
||||
}
|
||||
|
||||
current = text
|
||||
if !session.CanAccessClipboard() {
|
||||
break
|
||||
}
|
||||
|
||||
if err := session.Send(
|
||||
message.ClipboardData{
|
||||
Event: event.CLIPBOARD_UPDATED,
|
||||
|
@ -128,8 +133,6 @@ func (ws *WebSocketManagerCtx) Start() {
|
|||
}); err != nil {
|
||||
ws.logger.Warn().Err(err).Msg("could not sync clipboard")
|
||||
}
|
||||
|
||||
current = text
|
||||
}
|
||||
|
||||
time.Sleep(100 * time.Millisecond)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue