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
|
return
|
||||||
default:
|
default:
|
||||||
session := ws.sessions.GetHost()
|
session := ws.sessions.GetHost()
|
||||||
if session != nil {
|
if session == nil {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -97,7 +97,6 @@ func (ws *WebSocketManagerCtx) Start() {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Refactor
|
|
||||||
if err := session.Send(message.Clipboard{
|
if err := session.Send(message.Clipboard{
|
||||||
Event: event.CONTROL_CLIPBOARD,
|
Event: event.CONTROL_CLIPBOARD,
|
||||||
Text: text,
|
Text: text,
|
||||||
|
Loading…
Reference in New Issue
Block a user