Remove use of for..of, incompatible with IE

This commit is contained in:
Ryan Castner 2020-04-08 11:40:51 -04:00
parent 8f28e062fd
commit ae6db4316b
1 changed files with 2 additions and 1 deletions

View File

@ -85,7 +85,8 @@ export default class RFB extends EventTargetMixin {
} }
this._rawChannel = urlOrChannel; this._rawChannel = urlOrChannel;
for (let prop of rawChannelProps) { for (let i = 0; i < rawChannelProps.length; i++) {
let prop = rawChannelProps[i];
if (!urlOrChannel[prop]) { if (!urlOrChannel[prop]) {
this._rawChannel = null; this._rawChannel = null;
break; break;