diff --git a/src/routes/_index/+layout.component-browser.js b/src/routes/_index/+layout.component-browser.js index d03178af3..059556dc0 100644 --- a/src/routes/_index/+layout.component-browser.js +++ b/src/routes/_index/+layout.component-browser.js @@ -1,6 +1,6 @@ import "prismjs"; import "prismjs/themes/prism-tomorrow.css"; // import "prismjs/components/prism-json.js"; -// import "./main.js"; +import "../main.js"; export default {}; diff --git a/src/routes/main.js b/src/routes/main.js index c0138f135..f35266924 100644 --- a/src/routes/main.js +++ b/src/routes/main.js @@ -83,14 +83,14 @@ const debounce = (func, wait) => { }; // BUSY BUTTON -document.getElementById("busy-button").addEventListener("click", function () { +document.getElementById("busy-button")?.addEventListener("click", function () { const button = this; button.setAttribute("aria-label", "Busy..."); button.innerHTML = `