Explorar el Código

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

caosy hace 3 años
padre
commit
212b05450c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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') {