var -> const

Signed-off-by: Georg Ehrke <developer@georgehrke.com>
This commit is contained in:
Georg Ehrke 2019-09-19 16:26:31 +02:00
parent c97dbd91f9
commit ca9d7c53a0
No known key found for this signature in database
GPG Key ID: 9D98FD9380A1CB43
1 changed files with 3 additions and 1 deletions

View File

@ -33,12 +33,14 @@ function xhrProvider() {
// override open() method to add headers
xhr.open = function() {
var result = oldOpen.apply(this, arguments)
const result = oldOpen.apply(this, arguments)
for (let name in headers) {
xhr.setRequestHeader(name, headers[name])
}
return result
}
OC.registerXHRForErrorProcessing(xhr)
return xhr
}