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>