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
This commit is contained in:
Pk11 2022-05-20 15:56:45 -05:00
parent e419f26dcf
commit e90c1399c7

View File

@ -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");