mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-18 19:01:20 -08:00
whitelist default true
This commit is contained in:
1 parent
02904faddb
commit
09e6942c01
5 files changed
+5
-4
No files matched your search
@@ -248,7 +248,7 @@ class Artplayer extends (0, _emitterDefault.default) {
|
||||
return "development";
|
||||
}
|
||||
static get build() {
|
||||
return "2022-11-10 18:00:45";
|
||||
return "2022-11-13 22:49:08";
|
||||
}
|
||||
static get config() {
|
||||
return 0, _configDefault.default;
|
||||
@@ -1197,7 +1197,7 @@ class Whitelist {
|
||||
}
|
||||
get state() {
|
||||
const { option , constructor: { kindOf } , } = this.art;
|
||||
return !(0, _utils.isMobile) || option.whitelist.some((item)=>{
|
||||
return !(0, _utils.isMobile) || !option.whitelist.length || option.whitelist.some((item)=>{
|
||||
switch(kindOf(item)){
|
||||
case "string":
|
||||
return item === "*" || (0, _utils.userAgent).indexOf(item) > -1;
|
||||
|
||||
Reference in new issue
Block a user