瀏覽代碼

【MES】谷歌浏览器兼容修复
(cherry picked from commit 3acc31f)

caosy 3 年之前
父節點
當前提交
212b05450c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      WebContent/app/view/core/plugin/CopyPasteMenu.js

+ 1 - 1
WebContent/app/view/core/plugin/CopyPasteMenu.js

@@ -54,7 +54,7 @@ Ext.define('erp.view.core.plugin.CopyPasteMenu', {
 		}
 	},
 	isExecable: function() {
-		return Ext.isChrome && Number(Ext.userAgent.match(/chrome\/[\d.]+/gi)[0].replace(/[^0-9.]/ig,"").substring(0, 2)) > 42;
+		return Ext.isChrome && Number(Ext.userAgent.match(/chrome\/[\d.]+/gi)[0].replace(/[^0-9.]/ig,"").split(".")[0]) > 42;
 	},
 	loadSource: function() {
 		if (!this.execable && typeof ZeroClipboard === 'undefined') {