mirror of https://github.com/nextcloud/calendar
var -> const
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
This commit is contained in:
parent
c97dbd91f9
commit
ca9d7c53a0
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue