vnc scaling: still fallback to old default value if not set

as else we change behavior for those who never set the new scaling
variable, or cleared the browser local store.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2019-09-04 13:46:55 +02:00
parent 26fcae336c
commit 635cc133e0
2 changed files with 2 additions and 2 deletions

View File

@ -967,7 +967,7 @@ Ext.define('PVE.Utils', { utilities: {
vmid: vmid,
vmname: vmname,
node: nodename,
resize: sp.get('novnc-scaling'),
resize: sp.get('novnc-scaling', 'off'),
cmd: cmd
});
var nw = window.open("?" + url, '_blank', "innerWidth=745,innerheight=427");

View File

@ -47,7 +47,7 @@ Ext.define('PVE.noVncConsole', {
vmid: me.vmid,
node: me.nodename,
cmd: me.cmd,
resize: sp.get('novnc-scaling'),
resize: sp.get('novnc-scaling', 'scale'),
};
queryDict[type] = 1;
PVE.Utils.cleanEmptyObjectKeys(queryDict);