mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-21 20:56:09 +03:00
Remove use of Object.keys and Array.prototype.forEach for IE8 compatibility
This commit is contained in:
parent
6fdf81f266
commit
11157999eb
@ -2188,12 +2188,11 @@ function OpenSeadragon( options ){
|
||||
}
|
||||
|
||||
if (headers) {
|
||||
Object.keys(headers).forEach(function (headerName) {
|
||||
// Falsy header values will be ignored
|
||||
if (headers[headerName]) {
|
||||
for (var headerName in headers) {
|
||||
if (headers.hasOwnProperty(headerName) && headers[headerName]) {
|
||||
request.setRequestHeader(headerName, headers[headerName]);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
if (withCredentials) {
|
||||
|
Loading…
Reference in New Issue
Block a user