update: WTVClientCapabilities.js: catch exception when sent unknown configuration bits
This commit is contained in:
@@ -128,7 +128,11 @@ class WTVClientCapabilities {
|
|||||||
var bitfield_result = (bitfield[k] == "1")
|
var bitfield_result = (bitfield[k] == "1")
|
||||||
|
|
||||||
// set flags based on position of bit
|
// set flags based on position of bit
|
||||||
|
try {
|
||||||
add(capabilities_table[k][0], bitfield_result);
|
add(capabilities_table[k][0], bitfield_result);
|
||||||
|
} catch (ex) {
|
||||||
|
console.error(" * Unknown configuration bit", k);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
this.capabilities = capabilities;
|
this.capabilities = capabilities;
|
||||||
|
|||||||
Reference in New Issue
Block a user