Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 1e0fd7c

Browse files
committed
fix(docs): fixed js and spinner icon
1 parent 530308f commit 1e0fd7c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import "prismjs";
22
import "prismjs/themes/prism-tomorrow.css";
33
// import "prismjs/components/prism-json.js";
4-
// import "./main.js";
4+
import "../main.js";
55

66
export default {};

src/routes/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,14 @@ const debounce = (func, wait) => {
8383
};
8484

8585
// BUSY BUTTON
86-
document.getElementById("busy-button").addEventListener("click", function () {
86+
document.getElementById("busy-button")?.addEventListener("click", function () {
8787
const button = this;
8888
button.setAttribute("aria-label", "Busy...");
8989
button.innerHTML = `
9090
<span class="btn__cell">
9191
<span class="progress-spinner" role="img" aria-label="Busy">
9292
<svg class="icon icon--24" height="24" width="24" aria-hidden="true" >
93-
<use href="static/icons.svg#icon-spinner-24"></use>
93+
<use href="#icon-spinner-24"></use>
9494
</svg>
9595
</span>
9696
</span>

0 commit comments

Comments
 (0)