mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
fix clipboard bug.
This commit is contained in:
parent
0dab2a99d3
commit
e8f9e2e4e4
@ -88,7 +88,7 @@ func (ws *WebSocketManagerCtx) Start() {
|
||||
return
|
||||
default:
|
||||
session := ws.sessions.GetHost()
|
||||
if session != nil {
|
||||
if session == nil {
|
||||
break
|
||||
}
|
||||
|
||||
@ -97,7 +97,6 @@ func (ws *WebSocketManagerCtx) Start() {
|
||||
break
|
||||
}
|
||||
|
||||
// TODO: Refactor
|
||||
if err := session.Send(message.Clipboard{
|
||||
Event: event.CONTROL_CLIPBOARD,
|
||||
Text: text,
|
||||
|
Loading…
Reference in New Issue
Block a user