Skip to content

Commit

Permalink
fix: onload events
Browse files Browse the repository at this point in the history
  • Loading branch information
jgazeau committed Oct 12, 2022
1 parent c0c63c0 commit 8cd8db1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/js/theme/browserCompatibility.js
Original file line number Diff line number Diff line change
@@ -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/');
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{{partial "theme/includes-head.html" .root}}
{{partial "custom/custom-head.html" .root}}
</head>
<body>
<body onload='browserCompatibility()'>
<section>
{{partial "theme/header.html" .root}}
<div class='columns is-mobile is-paddingless is-marginless' id='mainContainer'>
Expand Down

0 comments on commit 8cd8db1

Please sign in to comment.