mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUAC-701: Fix error preventing testing on iOS.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user