Skip to content

Commit bddd992

Browse files
fix: fix JSONP transport on IE9
This fixes the following error: > Unable to get value of the property 'readyState': object is null or undefined Which was introduced in c46611c
1 parent df6a547 commit bddd992

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/transports/polling-jsonp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ class JSONPPolling extends Polling {
181181
} catch (e) {}
182182

183183
if (this.iframe.attachEvent) {
184-
this.iframe.onreadystatechange = function() {
184+
this.iframe.onreadystatechange = () => {
185185
if (this.iframe.readyState === "complete") {
186186
complete();
187187
}

0 commit comments

Comments
 (0)