mirror of
https://github.com/photonstorm/phaser
synced 2024-11-25 22:20:44 +00:00
Lint fix
This commit is contained in:
parent
2d4326f836
commit
c7418bd1c3
1 changed files with 3 additions and 3 deletions
|
@ -310,12 +310,12 @@ var File = new Class({
|
|||
*/
|
||||
onLoad: function (xhr, event)
|
||||
{
|
||||
|
||||
// On iOS, Capacitor often runs on a capacitor:// protocol, meaning local files are served from capacitor:// rather than file://
|
||||
// See: https://github.com/photonstorm/phaser/issues/5685
|
||||
// See: https://github.com/photonstorm/phaser/issues/5685
|
||||
|
||||
var isLocalFile = xhr.responseURL && (xhr.responseURL.indexOf('file://') === 0 || xhr.responseURL.indexOf('capacitor://') === 0);
|
||||
|
||||
var localFileOk = ( isLocalFile && event.target.status === 0);
|
||||
var localFileOk = (isLocalFile && event.target.status === 0);
|
||||
|
||||
var success = !(event.target && event.target.status !== 200) || localFileOk;
|
||||
|
||||
|
|
Loading…
Reference in a new issue