summaryrefslogtreecommitdiffstats
path: root/layouts/partials/scripts-front.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/scripts-front.html')
-rw-r--r--layouts/partials/scripts-front.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/layouts/partials/scripts-front.html b/layouts/partials/scripts-front.html
index 9fa99b6..59c3bb0 100644
--- a/layouts/partials/scripts-front.html
+++ b/layouts/partials/scripts-front.html
@@ -15,4 +15,19 @@
} else {
localStorage.setItem('fuji_theme', $('body').attr('data-theme'));
}
+</script>
+<script data-cfasync="false">
+ // ie
+ var ua = window.navigator.userAgent;
+
+ function browserDetection() {
+ if (ua.indexOf('MSIE ') > 0 || ua.indexOf('Trident/') > 0 || ua.indexOf('Edge/') > 0) {
+ return true;
+ }
+ return false;
+ }
+
+ if (browserDetection()) {
+ window.location.href('{{ "/ie/" | absURL }}');
+ }
</script> \ No newline at end of file