Skip to content

Commit 9f4db03

Browse files
authored
Merge pull request phaserjs#3031 from rblopes/fix-url-parameter
Fix `url` parameter processing.
2 parents c311d95 + c1c3bd3 commit 9f4db03

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

v3/src/loader/File.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ var File = new Class({
2727
}
2828

2929
// The URL of the file, not including baseURL
30-
this.url = GetFastValue(fileConfig, 'url', '');
30+
this.url = GetFastValue(fileConfig, 'url');
3131

32-
if (this.url === '')
32+
if (this.url === undefined)
3333
{
34-
this.url = GetFastValue(fileConfig, 'path', '') + this.key + GetFastValue(fileConfig, 'extension', '');
34+
this.url = GetFastValue(fileConfig, 'path', '') + this.key + '.' + GetFastValue(fileConfig, 'extension', '');
3535
}
3636
else
3737
{

0 commit comments

Comments
 (0)