This commit is contained in:
Richard Davey 2021-06-08 08:58:21 +01:00
commit f7e9ed027a
2 changed files with 2 additions and 2 deletions

View file

@ -86,7 +86,7 @@ var File = new Class({
{
url = loader.path + loadKey + '.' + GetFastValue(fileConfig, 'extension', '');
}
else if (typeof url === 'string' && !url.match(/^(?:blob:|data:|http:\/\/|https:\/\/|\/\/)/))
else if (typeof url === 'string' && !url.match(/^(?:blob:|data:|capacitor:\/\/|http:\/\/|https:\/\/|\/\/)/))
{
url = loader.path + url;
}

View file

@ -22,7 +22,7 @@ var GetURL = function (file, baseURL)
return false;
}
if (file.url.match(/^(?:blob:|data:|http:\/\/|https:\/\/|\/\/)/))
if (file.url.match(/^(?:blob:|data:|capacitor:\/\/|http:\/\/|https:\/\/|\/\/)/))
{
return file.url;
}