Remove unneeded variable responseType in xhr helper
Showing
1 changed file
with
2 additions
and
4 deletions
... | @@ -111,7 +111,6 @@ var | ... | @@ -111,7 +111,6 @@ var |
111 | options = { | 111 | options = { |
112 | method: 'GET' | 112 | method: 'GET' |
113 | }, | 113 | }, |
114 | responseType, | ||
115 | request; | 114 | request; |
116 | 115 | ||
117 | if (typeof callback !== 'function') { | 116 | if (typeof callback !== 'function') { |
... | @@ -121,14 +120,13 @@ var | ... | @@ -121,14 +120,13 @@ var |
121 | if (typeof url === 'object') { | 120 | if (typeof url === 'object') { |
122 | options = videojs.util.mergeOptions(options, url); | 121 | options = videojs.util.mergeOptions(options, url); |
123 | url = options.url; | 122 | url = options.url; |
124 | responseType = options.responseType; | ||
125 | } | 123 | } |
126 | 124 | ||
127 | request = new window.XMLHttpRequest(); | 125 | request = new window.XMLHttpRequest(); |
128 | request.open(options.method, url); | 126 | request.open(options.method, url); |
129 | 127 | ||
130 | if (responseType) { | 128 | if (options.responseType) { |
131 | request.responseType = responseType; | 129 | request.responseType = options.responseType; |
132 | } | 130 | } |
133 | if (settings.withCredentials) { | 131 | if (settings.withCredentials) { |
134 | request.withCredentials = true; | 132 | request.withCredentials = true; | ... | ... |
-
Please register or sign in to post a comment