]> _ Git - fluidbook-html5.git/commitdiff
wip #5339 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 6 Jul 2022 10:49:37 +0000 (12:49 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 6 Jul 2022 10:49:37 +0000 (12:49 +0200)
_seohybrid.html

index 0d518a9c09b626595cc89e8a16c38325cc01c948..eb5242d0280bc48044253d961c6692c6a1c3b35b 100644 (file)
 </head>
 <body>
 <script>
-    var location = window.location.toString();
+    var loc = window.location.toString();
 
     var redirect = window.matchMedia('(min-device-width: 640px) and (min-device-height: 640px)').matches ? 'd' : 'mf';
-    var current = location.indexOf('/mf/') >= 0 ? 'mf' : 'd';
+    var current = loc.indexOf('/mf/') >= 0 ? 'mf' : 'd';
 
-    var redirection = current !== redirect ? location.replace('/' + current + '/', '/' + redirect + '/') : '../index.html$page';
-    console.log(location, redirect, current, redirection);
-    //window.location = redirection;
+    var redirection = current !== redirect ? loc.replace('/' + current + '/', '/' + redirect + '/') : '../index.html$page';
+    console.log(loc, redirect, current, redirection);
+    window.location = redirection;
 </script>
 $content
 </body>