mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-25 16:11:20 -08:00
remove player object
This commit is contained in:
1 parent
59a8ccce81
commit
59400eb3bf
58 files changed
+295
-313
No files matched your search
@@ -2,11 +2,15 @@ import { userAgent, isMobile } from './utils';
|
||||
|
||||
export default class Whitelist {
|
||||
constructor(art) {
|
||||
this.art = art;
|
||||
}
|
||||
|
||||
get state() {
|
||||
const {
|
||||
constructor: { kindOf },
|
||||
option: { whitelist },
|
||||
} = art;
|
||||
this.state =
|
||||
} = this.art;
|
||||
return (
|
||||
!isMobile ||
|
||||
whitelist.some((item) => {
|
||||
switch (kindOf(item)) {
|
||||
@@ -19,6 +23,7 @@ export default class Whitelist {
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
});
|
||||
})
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user