From 18ece342cdae825cf3744d03489581e2c2981559 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Tue, 20 May 2014 14:37:53 -0700 Subject: [PATCH] GUAC-701: Fix error preventing testing on iOS. --- guacamole/src/main/webapp/scripts/client-ui.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/guacamole/src/main/webapp/scripts/client-ui.js b/guacamole/src/main/webapp/scripts/client-ui.js index ab2a02ac3..8f02c2ac7 100644 --- a/guacamole/src/main/webapp/scripts/client-ui.js +++ b/guacamole/src/main/webapp/scripts/client-ui.js @@ -812,8 +812,11 @@ GuacUI.Client.setScale = function(new_scale) { */ GuacUI.Client.updateDisplayScale = function() { - // Determine whether display is currently fit to the screen var guac = GuacUI.Client.attachedClient; + if (!guac) + return; + + // Determine whether display is currently fit to the screen var auto_fit = (guac.getDisplay().getScale() === GuacUI.Client.min_zoom); // Calculate scale to fit screen