mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
Merge patch branch changes to main.
This commit is contained in:
@@ -194,7 +194,6 @@ Guacamole.Client = function(tunnel) {
|
|||||||
|
|
||||||
var index = parseInt(key);
|
var index = parseInt(key);
|
||||||
var layer = layersSnapshot[key];
|
var layer = layersSnapshot[key];
|
||||||
var canvas = layer.toCanvas();
|
|
||||||
|
|
||||||
// Store layer/buffer dimensions
|
// Store layer/buffer dimensions
|
||||||
var exportLayer = {
|
var exportLayer = {
|
||||||
@@ -203,8 +202,10 @@ Guacamole.Client = function(tunnel) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Store layer/buffer image data, if it can be generated
|
// Store layer/buffer image data, if it can be generated
|
||||||
if (layer.width && layer.height)
|
if (layer.width && layer.height) {
|
||||||
|
var canvas = layer.toCanvas();
|
||||||
exportLayer.url = canvas.toDataURL('image/png');
|
exportLayer.url = canvas.toDataURL('image/png');
|
||||||
|
}
|
||||||
|
|
||||||
// Add layer properties if not a buffer nor the default layer
|
// Add layer properties if not a buffer nor the default layer
|
||||||
if (index > 0) {
|
if (index > 0) {
|
||||||
|
Reference in New Issue
Block a user