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,14 +55,16 @@ angular.module('client').factory('clipboardService', ['$injector',
|
|||||||
*/
|
*/
|
||||||
var lastClipboardEvent = '';
|
var lastClipboardEvent = '';
|
||||||
|
|
||||||
|
// Ensure textarea is selectable but not visible
|
||||||
clipElement.appendChild(clipboardContent);
|
clipElement.appendChild(clipboardContent);
|
||||||
clipElement.style.position = 'absolute';
|
clipElement.style.position = 'absolute';
|
||||||
clipElement.style.width = '1px';
|
clipElement.style.width = '1px';
|
||||||
clipElement.style.height = '1px';
|
clipElement.style.height = '1px';
|
||||||
clipElement.style.left = '-1px';
|
clipElement.style.left = '-1px';
|
||||||
clipElement.style.top = '-1px';
|
clipElement.style.top = '-1px';
|
||||||
clipElement.style.overflow = 'hidden';
|
clipElement.style.overflow = 'hidden';
|
||||||
|
|
||||||
|
// Add textarea to DOM
|
||||||
document.body.appendChild(clipElement);
|
document.body.appendChild(clipElement);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user