mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 14:40:38 +00:00
Add capacitor:// to protocol check to prevent malformed double-url issue in capacitor
This commit is contained in:
parent
3dc66c3a43
commit
cea3d45719
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue