From e90c1399c719c24aa5a6a9a069bf3848276143af Mon Sep 17 00:00:00 2001 From: Pk11 Date: Fri, 20 May 2022 15:56:45 -0500 Subject: [PATCH] Try to fix ES6~ES8 compatibility again I think the problem is that the outer {} was being interpreted as a scope block instead of an object? With the let = {} it could only be an object --- assets/js/rescript.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/assets/js/rescript.js b/assets/js/rescript.js index 601fdc45..d743623e 100644 --- a/assets/js/rescript.js +++ b/assets/js/rescript.js @@ -1,3 +1,5 @@ +let es9 = {...{}}; + // Make navbar not open on hover Array.from(document.getElementsByClassName("hover-content")).forEach(r => { r.classList.remove("hover-content");