summaryrefslogtreecommitdiff
path: root/addons/web_mobile/static/src
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web_mobile/static/src')
-rwxr-xr-xaddons/web_mobile/static/src/web_mobile.html5
1 files changed, 1 insertions, 4 deletions
diff --git a/addons/web_mobile/static/src/web_mobile.html b/addons/web_mobile/static/src/web_mobile.html
index f3aab5eb4eb..32c340a9604 100755
--- a/addons/web_mobile/static/src/web_mobile.html
+++ b/addons/web_mobile/static/src/web_mobile.html
@@ -50,10 +50,7 @@
<script type="text/javascript">
var QWeb;
$(function() {
- if(
- document.URL!="http://"+window.location.host+"/web_mobile/static/src/web_mobile.html" &&
- document.URL!="https://"+window.location.host+"/web_mobile/static/src/web_mobile.html"
- ){
+ if(window.location.pathname!="/web_mobile/static/src/web_mobile.html"){
window.location.replace('/mobile');
}
var oe = openerp.init();