Kaynağa Gözat

reactivated js mobile redirection

Bachir Soussi Chiadmi 7 yıl önce
ebeveyn
işleme
e3b19a7596

Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
sites/all/themes/custom/edlptheme/assets/dist/scripts/redirect.min.js


+ 4 - 4
sites/all/themes/custom/edlptheme/assets/scripts/redirect.js

@@ -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');

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor