unknown 5 лет назад
Родитель
Сommit
c2c9ffdab5
2 измененных файлов с 6 добавлено и 4 удалено
  1. 6 3
      o2web/source/x_component_Common/Main.js
  2. 0 1
      package.json

+ 6 - 3
o2web/source/x_component_Common/Main.js

@@ -268,9 +268,12 @@ MWF.xApplication.Common.Main = new Class({
 		window.addEventListener("beforeunload", function (e) {
 			this.fireAppEvent("queryClose");
 		}.bind(this));
-		// window.addEventListener("pagehide", function (e) {
-		// 	this.fireAppEvent("queryClose");
-		// }.bind(this));
+
+		if(layout.mobile){
+			window.addEventListener("pagehide", function (e) {
+				this.fireAppEvent("queryClose");
+			}.bind(this));
+		}
 
 		// window.onbeforeunload = function(e){
 		//     this.fireAppEvent("queryClose");

+ 0 - 1
package.json

@@ -71,7 +71,6 @@
                 "progress-stream": "^2.0.0",
                 "request": "^2.88.2",
                 "single-line-log": "^1.1.2",
-                "source-map": "^0.7.3",
                 "targz": "^1.0.1"
         }
 }