mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-23 05:41:20 -08:00
remove isMobile from instance
This commit is contained in:
1 parent
6b19316bf3
commit
7d06600d7b
10 files changed
+23
-102
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import config from '../config';
|
||||
import { sleep, addClass, setStyle } from '../utils';
|
||||
import { sleep, addClass, setStyle, isMobile } from '../utils';
|
||||
|
||||
export default function eventInit(art, player) {
|
||||
const {
|
||||
@@ -96,7 +96,7 @@ export default function eventInit(art, player) {
|
||||
|
||||
art.once('video:loadedmetadata', () => {
|
||||
player.autoSize = option.autoSize;
|
||||
if (art.isMobile) {
|
||||
if (isMobile) {
|
||||
art.loading.show = false;
|
||||
art.controls.show = true;
|
||||
art.mask.show = true;
|
||||
|
||||
Reference in new issue
Block a user