mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 22:53:21 -08:00
add isSafari in instance
This commit is contained in:
1 parent
f05cf63105
commit
dbe99aa205
3 files changed
+38
-7
No files matched your search
@@ -37,9 +37,7 @@ export default class Artplayer extends Emitter {
|
||||
|
||||
this.isFocus = false;
|
||||
this.isDestroy = false;
|
||||
this.userAgent = utils.userAgent;
|
||||
this.isMobile = utils.isMobile;
|
||||
this.isWechat = utils.isWechat;
|
||||
|
||||
this.whitelist = new Whitelist(this);
|
||||
this.template = new Template(this);
|
||||
this.events = new Events(this);
|
||||
@@ -175,6 +173,22 @@ export default class Artplayer extends Emitter {
|
||||
};
|
||||
}
|
||||
|
||||
get userAgent() {
|
||||
return utils.userAgent;
|
||||
}
|
||||
|
||||
get isMobile() {
|
||||
return utils.isMobile;
|
||||
}
|
||||
|
||||
get isWechat() {
|
||||
return utils.isWechat;
|
||||
}
|
||||
|
||||
get isSafari() {
|
||||
return utils.isSafari;
|
||||
}
|
||||
|
||||
get proxy() {
|
||||
return this.events.proxy;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user