mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUAC-1480: Clean up and document init.
This commit is contained in:
@@ -55,6 +55,7 @@ angular.module('client').factory('clipboardService', ['$injector',
|
||||
*/
|
||||
var lastClipboardEvent = '';
|
||||
|
||||
// Ensure textarea is selectable but not visible
|
||||
clipElement.appendChild(clipboardContent);
|
||||
clipElement.style.position = 'absolute';
|
||||
clipElement.style.width = '1px';
|
||||
@@ -63,6 +64,7 @@ angular.module('client').factory('clipboardService', ['$injector',
|
||||
clipElement.style.top = '-1px';
|
||||
clipElement.style.overflow = 'hidden';
|
||||
|
||||
// Add textarea to DOM
|
||||
document.body.appendChild(clipElement);
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user