Only send if actually changed.
This commit is contained in:
1 parent
9f6c04aa07
commit
4a5880cf82
1 file changed
+4
-2
@@ -405,8 +405,10 @@ GuacamoleRootUI.settings.disable_sound.onclick = function() {
|
||||
window.onblur =
|
||||
GuacamoleRootUI.fields.clipboard.onchange = function() {
|
||||
|
||||
GuacamoleRootUI.session_state.setProperty(
|
||||
"clipboard", GuacamoleRootUI.fields.clipboard.value);
|
||||
// Set value if changed
|
||||
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