diff --git a/o2web/source/x_component_Common/Main.js b/o2web/source/x_component_Common/Main.js index 9d4a35a1beff182403fa202f6907b6ea32a1a663..3c7b5f9b1fbb5add0a89d4f01dee75d92b9808d4 100644 --- a/o2web/source/x_component_Common/Main.js +++ b/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"); diff --git a/package.json b/package.json index d4a1c0525de1e78cba5380606794a251523b13ed..050597b5b604dd36b264e864f278d2c537d660b5 100644 --- a/package.json +++ b/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" } }