Fix import
This commit is contained in:
parent
1660de60d8
commit
17af0913e7
3 changed files with 3 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue