From ae6db4316baa8bcbb4cbff433c77d8d3694f6085 Mon Sep 17 00:00:00 2001 From: Ryan Castner Date: Wed, 8 Apr 2020 11:40:51 -0400 Subject: [PATCH] Remove use of for..of, incompatible with IE --- core/rfb.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;