add isSafari in instance

This commit is contained in:
Harvey committed 2021-12-10 10:08:08 +08:00
1 parent f05cf63105
commit dbe99aa205
3 files changed
+38 -7

No files matched your search

+17 -3
View File
@@ -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;
}