Update Chrome Detect

This commit is contained in:
ckcz123 2018-01-17 17:10:07 +08:00
parent aa77e2aa57
commit 254c2e3f68

View File

@ -49,7 +49,7 @@ function core() {
'isOnline': true, // 是否http
'isPC': true, // 是否是PC
'isIOS': false, // 是否是iOS
'isSafari': false, // 是否是Safari
'isWeChat': false, // 是否是微信
'isChrome': false, // 是否是Chrome
'supportCopy': false, // 是否支持复制到剪切板
@ -194,7 +194,7 @@ core.prototype.init = function (dom, statusBar, canvas, images, pngs, bgms, soun
}
core.platform.isSafari = /Safari/.test(navigator.userAgent);
core.platform.isChrome = /Chrome/.test(navigator.userAgent);
core.platform.isChrome = /Chrome/.test(navigator.userAgent) && !!window.chrome && /Google Inc/.test(navigator.vendor);
if (window.FileReader) {
core.platform.fileReader = new FileReader();