mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-09 06:31:22 +00:00
Only send if actually changed.
This commit is contained in:
@@ -405,8 +405,10 @@ GuacamoleRootUI.settings.disable_sound.onclick = function() {
|
|||||||
window.onblur =
|
window.onblur =
|
||||||
GuacamoleRootUI.fields.clipboard.onchange = function() {
|
GuacamoleRootUI.fields.clipboard.onchange = function() {
|
||||||
|
|
||||||
GuacamoleRootUI.session_state.setProperty(
|
// Set value if changed
|
||||||
"clipboard", GuacamoleRootUI.fields.clipboard.value);
|
var new_value = GuacamoleRootUI.fields.clipboard.value;
|
||||||
|
if (GuacamoleRootUI.session_state.getProperty("clipboard") != new_value)
|
||||||
|
GuacamoleRootUI.session_state.setProperty("clipboard", new_value);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user