mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-21 04:31:20 -08:00
add isIE in instance
This commit is contained in:
1 parent
dbe99aa205
commit
631bcfda58
4 files changed
+14
-2
No files matched your search
@@ -209,6 +209,7 @@
|
||||
var isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(userAgent);
|
||||
var isSafari = /^((?!chrome|android).)*safari/i.test(userAgent);
|
||||
var isWechat = /MicroMessenger/i.test(userAgent);
|
||||
var isIE = /MSIE|Trident/i.test(userAgent);
|
||||
|
||||
function query(selector) {
|
||||
var parent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document;
|
||||
@@ -672,7 +673,8 @@
|
||||
userAgent: userAgent,
|
||||
isMobile: isMobile,
|
||||
isSafari: isSafari,
|
||||
isWechat: isWechat
|
||||
isWechat: isWechat,
|
||||
isIE: isIE
|
||||
});
|
||||
|
||||
function _defineProperty(obj, key, value) {
|
||||
@@ -4847,6 +4849,11 @@
|
||||
get: function get() {
|
||||
return isSafari;
|
||||
}
|
||||
}, {
|
||||
key: "isIE",
|
||||
get: function get() {
|
||||
return isIE;
|
||||
}
|
||||
}, {
|
||||
key: "proxy",
|
||||
get: function get() {
|
||||
|
||||
Reference in new issue
Block a user