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

index ff8d99eb68d3c4dfea420ce64718579d2046661c..2b7b4e83d3f167df857a9c5b9c841500696bdd84 100644 (file)
     var redirect = window.matchMedia('(min-device-width: 640px) and (min-device-height: 640px)').matches ? 'd' : 'mf';
     var current = location.indexOf('/mf/') >= 0 ? 'mf' : 'd';
 
-    if (current !== redirect) {
-        window.location = location.replace('/' + current + '/', '/' + redirect + '/');
-    } else {
-        window.location = '../index.html$page';
-    }
+    var redirection = current !== redirect ? location.replace('/' + current + '/', '/' + redirect + '/') : '../index.html$page';
+    console.log(location, redirect, current, redirection);
+    //window.location = redirection;
+
 </script>
 $content
 </body>