From 1e0fd7c79a2f86ab9d544817d3e160abf0cc30ab Mon Sep 17 00:00:00 2001 From: Arthur Khachatryan Date: Mon, 13 Jan 2025 09:26:51 -0800 Subject: [PATCH] fix(docs): fixed js and spinner icon --- src/routes/_index/+layout.component-browser.js | 2 +- src/routes/main.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 = `