Skip to content

Commit 1f21a7d

Browse files
committed
Fix url type check
Fixes phaserjs#5125
1 parent d6e8600 commit 1f21a7d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/loader/File.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ var File = new Class({
9494
{
9595
this.url = loader.path + loadKey + '.' + GetFastValue(fileConfig, 'extension', '');
9696
}
97-
else if (typeof(this.url) !== 'function' && this.url.indexOf('blob:') !== 0 && this.url.indexOf('data:') !== 0)
97+
else if (typeof this.url === 'string' && this.url.indexOf('blob:') !== 0 && this.url.indexOf('data:') !== 0)
9898
{
9999
this.url = loader.path + this.url;
100100
}

0 commit comments

Comments
 (0)