mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 22:53:21 -08:00
bugfix
This commit is contained in:
1 parent
093e5b213f
commit
a79a3cef87
2 files changed
+3
-4
No files matched your search
@@ -472,9 +472,8 @@
|
||||
var option = this.art.option;
|
||||
|
||||
if (!option.type) {
|
||||
var urlArr = option.url.trim().toLowerCase().split('.');
|
||||
var type = urlArr[urlArr.length - 1];
|
||||
errorHandle(Object.keys(mimeCodeces).includes(type), "Can't find video's type from ".concat(option.url));
|
||||
var type = option.url.trim().toLowerCase().split('.').pop();
|
||||
errorHandle(Object.keys(mimeCodeces).includes(type), "Can't find video's type '".concat(type, "' from '").concat(option.url, "'"));
|
||||
option.type = type;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user