This commit is contained in:
grafixeyehero
2022-05-21 23:37:30 +03:00
committed by Dmitry Lyzo
parent 8f4e87dd1f
commit f2c747ce19

View File

@@ -38,7 +38,7 @@ import { getIncludeCorsCredentials } from '../../scripts/settings/webSettings';
*/
function resolveUrl(url) {
return new Promise((resolve) => {
var xhr = new XMLHttpRequest();
const xhr = new XMLHttpRequest();
xhr.open('HEAD', url, true);
xhr.onload = function () {
resolve(xhr.responseURL || url);