mirror of
https://github.com/veops/oneterm.git
synced 2025-09-26 19:31:14 +08:00
fix(ui): guacamole client state display error
This commit is contained in:
@@ -153,14 +153,16 @@ export default {
|
||||
const tunnel = new Guacamole.WebSocketTunnel(socketLink)
|
||||
const client = new Guacamole.Client(tunnel)
|
||||
|
||||
// clipboard contents received by remote desktop
|
||||
client.onclipboard = this.handleClipboardReceived
|
||||
|
||||
if (this?.assetPermissions?.[PERMISSION_TYPE.COPY]) {
|
||||
// handle the clipboard content received from the remote desktop.
|
||||
client.onclipboard = this.handleClipboardReceived
|
||||
}
|
||||
|
||||
// fired whenever the state of this Guacamole.Client changes.
|
||||
client.onstatechange = (state) => {
|
||||
this.onClientStateChange(state)
|
||||
}
|
||||
|
||||
client.onerror = this.onError
|
||||
client.ondisconnect = this.onDisconnect
|
||||
tunnel.onerror = this.onError
|
||||
|
Reference in New Issue
Block a user