From 8cd8db174c01b3b4f4fd035d2ea71954fd2a25f6 Mon Sep 17 00:00:00 2001 From: Jordan GAZEAU Date: Thu, 13 Oct 2022 00:14:53 +0200 Subject: [PATCH] fix: onload events --- assets/js/theme/browserCompatibility.js | 2 +- layouts/partials/main.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/theme/browserCompatibility.js b/assets/js/theme/browserCompatibility.js index c660d369..b3dede1b 100644 --- a/assets/js/theme/browserCompatibility.js +++ b/assets/js/theme/browserCompatibility.js @@ -1,6 +1,6 @@ // Function returning true or false (wether the site can be loaded or not) // depending on the browser version (IE not supported) -window.onload = function () { +function browserCompatibility() { var ua = window.navigator.userAgent; var msie = ua.indexOf('MSIE '); var trident = ua.indexOf('Trident/'); diff --git a/layouts/partials/main.html b/layouts/partials/main.html index b1a89c7b..f39e3ba5 100644 --- a/layouts/partials/main.html +++ b/layouts/partials/main.html @@ -5,7 +5,7 @@ {{partial "theme/includes-head.html" .root}} {{partial "custom/custom-head.html" .root}} - +
{{partial "theme/header.html" .root}}