Przeglądaj źródła

【MES】谷歌浏览器兼容修复

caosy 3 lat temu
rodzic
commit
3acc31f38a
1 zmienionych plików z 1 dodań i 1 usunięć
  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') {