var redirect;\r
var locationWithoutHash = window.location.href.split('#')[0];\r
var hash = window.location.hash;\r
- if (window.matchMedia('(min-width: $breakpoint)').matches) {\r
+ if (window.matchMedia('(min-device-width: $breakpoint) and (min-device-height: $breakpoint)').matches) {\r
redirect = 'd';\r
} else {\r
redirect = 'mf';\r
$hybrid = file_get_contents(WS_COMPILE_ASSETS . '/hybrid/index.html');
$replace = [
- 'breakpoint' => ((int)$this->book->parametres->mobilefirstBreakpoint - 1) . 'px',
+ 'breakpoint' => $this->book->parametres->mobilefirstBreakpoint . 'px',
'bgcolor' => $this->theme->parametres->loadingBackColor
];
foreach ($replace as $var => $value) {