mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-11 23:47:42 +00:00
Share state using session control object, add missing licenses, fix wrong license.
This commit is contained in:
@@ -1,4 +1,22 @@
|
||||
|
||||
/*
|
||||
* Guacamole - Clientless Remote Desktop
|
||||
* Copyright (C) 2010 Michael Jumper
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
// UI Definition
|
||||
var GuacamoleUI = {
|
||||
|
||||
@@ -530,9 +548,16 @@ GuacamoleUI.attach = function(guac) {
|
||||
|
||||
};
|
||||
|
||||
var state = new GuacamoleSessionState();
|
||||
|
||||
// Server copy handler
|
||||
guac.onclipboard = function(data) {
|
||||
window.opener.setClipboard(data);
|
||||
state.setProperty("clipboard", data);
|
||||
};
|
||||
|
||||
state.onchange = function(old_state, new_state, name) {
|
||||
if (name == "clipboard")
|
||||
guac.setClipboard(new_state[name]);
|
||||
};
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user