Fix import

This commit is contained in:
grafixeyehero 2022-05-21 23:37:30 +03:00
parent 1660de60d8
commit 17af0913e7
3 changed files with 3 additions and 6 deletions

View file

@ -39,7 +39,7 @@ import { setBackdropTransparency, TRANSPARENCY_LEVEL } from '../../components/ba
*/
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);