GUAC-701: Fix error preventing testing on iOS.

This commit is contained in:
Michael Jumper
2014-05-20 14:37:53 -07:00
parent 39720019cd
commit 18ece342cd

View File

@@ -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