guacamole-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mjum...@apache.org
Subject [17/50] incubator-guacamole-client git commit: GUAC-1480: Check clipboard on load as well.
Date Sun, 20 Mar 2016 02:21:57 GMT
GUAC-1480: Check clipboard on load as well.

Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/commit/1896d941
Tree: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/tree/1896d941
Diff: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/diff/1896d941

Branch: refs/heads/master
Commit: 1896d9418f1c6d20cc68e5e2f7d698b3751810c6
Parents: 944d126
Author: Michael Jumper <mike.jumper@guac-dev.org>
Authored: Fri Feb 5 11:39:39 2016 -0800
Committer: Michael Jumper <mike.jumper@guac-dev.org>
Committed: Fri Feb 5 11:39:39 2016 -0800

----------------------------------------------------------------------
 guacamole/src/main/webapp/app/client/services/clipboardService.js | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/blob/1896d941/guacamole/src/main/webapp/app/client/services/clipboardService.js
----------------------------------------------------------------------
diff --git a/guacamole/src/main/webapp/app/client/services/clipboardService.js b/guacamole/src/main/webapp/app/client/services/clipboardService.js
index 71f3ec2..efa8478 100644
--- a/guacamole/src/main/webapp/app/client/services/clipboardService.js
+++ b/guacamole/src/main/webapp/app/client/services/clipboardService.js
@@ -143,6 +143,7 @@ angular.module('client').factory('clipboardService', ['$injector',
     };
 
     // Attempt to read the clipboard if it may have changed
+    window.addEventListener('load',  checkClipboard, true);
     window.addEventListener('copy',  checkClipboard, true);
     window.addEventListener('cut',   checkClipboard, true);
     window.addEventListener('focus', function focusGained(e) {


Mime
View raw message