VNC-269 Log incorrect rect types (#167)
This commit is contained in:
parent
5e83e8d452
commit
6112d633de
|
|
@ -1357,12 +1357,16 @@ export default class Display {
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
secondaryScreenRects++;
|
secondaryScreenRects++;
|
||||||
|
if (a instanceof HTMLImageElement) {
|
||||||
|
Log.Warn("Wrong rect type: " + rect.type);
|
||||||
|
} else {
|
||||||
if (this._screens[screenLocation.screenIndex].channel) {
|
if (this._screens[screenLocation.screenIndex].channel) {
|
||||||
this._screens[screenLocation.screenIndex].channel.postMessage({
|
this._screens[screenLocation.screenIndex].channel.postMessage({
|
||||||
eventType: 'rect',
|
eventType: 'rect',
|
||||||
rect: a,
|
rect: a,
|
||||||
screenLocationIndex: sI
|
screenLocationIndex: sI
|
||||||
});
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue