diff --git a/core/rfb.js b/core/rfb.js index ec466122..6b6cd41e 100644 --- a/core/rfb.js +++ b/core/rfb.js @@ -85,7 +85,8 @@ export default class RFB extends EventTargetMixin { } this._rawChannel = urlOrChannel; - for (let prop of rawChannelProps) { + for (let i = 0; i < rawChannelProps.length; i++) { + let prop = rawChannelProps[i]; if (!urlOrChannel[prop]) { this._rawChannel = null; break;