Commit 7687998d authored by Emiliano Balbuena's avatar Emiliano Balbuena

(chore): Not supported detection on head

1 merge request!643(refactor): Remove engine logic from front/index.php
Pipeline #96299272 failed with stages
in 25 minutes and 29 seconds
......@@ -13,6 +13,16 @@
<title><?php echo $index->getTitle() ?></title>
<script>
var ua = window.navigator.userAgent;
if (
ua.indexOf("MSIE") > -1 ||
(ua.indexOf("Android 4.3") > -1 && !(ua.indexOf('Chrome') > -1)) //android 4.3, but not chrome browser
) {
window.location.href = '/not-supported';
}
</script>
<!-- inject:css -->
<!-- endinject -->
......@@ -98,15 +108,5 @@
<?php echo $index->getTailHtml() ?>
<script>
var ua = window.navigator.userAgent;
if (
ua.indexOf("MSIE") > -1 ||
(ua.indexOf("Android 4.3") > -1 && !(ua.indexOf('Chrome') > -1)) //android 4.3, but not chrome browser
) {
window.location.href = window.Minds.site_url + 'not-supported';
}
</script>
</body>
</html>
Please register or to comment