[pve-devel] javascript error since upgrade to novnc0.5-2

Stefan Priebe - Profihost AG s.priebe at profihost.ag
Wed Jul 29 09:28:06 CEST 2015


Hi,

still on stable-3.

Sicne upgrading to novnc 0.5-2 i get on some hosts the following error
in novnc.

pveui.js:284 Uncaught TypeError: Cannot read property 'type' of null
pveui.js:284UI.updateSetting @ pveui.js:304UI.pve_start.start_vnc_viewer
@ pveui.js:1615UI.pve_start.UI.API2Request.success @
pveui.js:1627UI.API2Request.xhr.onload @ pveui.js:1199

This is:
       // Read form control compatible setting from cookie
        getSetting: function(name) {
            var ctrl = $D('noVNC_' + name);
            var val = WebUtil.readSetting(name);
            if (typeof val !== 'undefined' && val !== null && ctrl.type
=== 'checkbox') {
                if (val.toString().toLowerCase() in {'0':1, 'no':1,
'false':1}) {
                    val = false;
                } else {
                    val = true;
                }
            }
            return val;
        },


Stefan



More information about the pve-devel mailing list