reactivated js mobile redirection

This commit is contained in:
2018-04-26 23:23:31 +02:00
parent 7386ce404e
commit e3b19a7596
2 changed files with 5 additions and 5 deletions
@@ -18,14 +18,14 @@ if(typeof edlp_mobile != "undefined"){
case (device_is_mobile && !edlp_mobile.is_mobile_domain):
// console.log('redirect to mobile domain', window.location.protocol +'//'+ edlp_mobile.mobile_url);
device_redirect = true;
// TODO: redirect to mobile domain
// window.location.replace(window.location.protocol +'//'+ edlp_mobile.mobile_url);
// redirect to mobile domain
window.location.replace(window.location.protocol +'//'+ edlp_mobile.mobile_url);
break;
case (edlp_mobile.is_mobile_domain && !device_is_mobile):
// console.log('redirect to desktop domain', window.location.protocol +'//'+ edlp_mobile.desktop_url);
device_redirect = true;
// TODO: redirect to desktop domain
// window.location.replace(window.location.protocol +'//'+ edlp_mobile.desktop_url);
// redirect to desktop domain
window.location.replace(window.location.protocol +'//'+ edlp_mobile.desktop_url);
break;
default:
// console.log('do not redirect');