Fix url type check

Fixes #5125
This commit is contained in:
samme 2020-05-02 12:36:19 -07:00
parent d6e8600766
commit 1f21a7d3be

View file

@ -94,7 +94,7 @@ var File = new Class({
{
this.url = loader.path + loadKey + '.' + GetFastValue(fileConfig, 'extension', '');
}
else if (typeof(this.url) !== 'function' && this.url.indexOf('blob:') !== 0 && this.url.indexOf('data:') !== 0)
else if (typeof this.url === 'string' && this.url.indexOf('blob:') !== 0 && this.url.indexOf('data:') !== 0)
{
this.url = loader.path + this.url;
}