fix: hideBanners being undefined

This commit is contained in:
SukkaW
2021-09-04 12:13:49 +08:00
committed by 神戸小鳥
parent dbac251c76
commit 2c4b276686
2 changed files with 3 additions and 1 deletions

View File

@@ -4,7 +4,7 @@ import App from '../src/app.js';
window.json = async fileName => await (await fetch(`../data/${fileName}.json`)).json();
// Pssst, I've created a github package - https://github.com/brookesb91/dismissible
const hideBanners = (e) => {
export const hideBanners = (e) => {
document
.querySelectorAll(".banner.visible")
.forEach((b) => b.classList.remove("visible"));