Skip to content

Commit f6bbcd2

Browse files
Fix paths for GitHub Pages - use relative paths
1 parent a2a2ecd commit f6bbcd2

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width,initial-scale=1" />
66
<title>Stream Deck Icon Generator</title>
7-
<link rel="stylesheet" href="/src/styles/base.css" />
8-
<link rel="stylesheet" href="/src/styles/modal.css" />
7+
<link rel="stylesheet" href="./src/styles/base.css" />
8+
<link rel="stylesheet" href="./src/styles/modal.css" />
99
</head>
1010

1111
<body>
@@ -391,7 +391,7 @@ <h3 id="iconModalTitle">Select Icon</h3>
391391
role="searchbox"
392392
/>
393393
<span class="help" id="iconModalDescription" aria-live="polite"
394-
>Loaded from <code>/icons/fontawesome/index.json</code></span
394+
>Loaded from <code>public/icons/fontawesome/index.json</code></span
395395
>
396396
</div>
397397

@@ -405,6 +405,6 @@ <h3 id="iconModalTitle">Select Icon</h3>
405405
</div>
406406
</div>
407407

408-
<script type="module" src="/src/js/app.js"></script>
408+
<script type="module" src="./src/js/app.js"></script>
409409
</body>
410410
</html>

src/js/icons.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { state } from "./state.js";
22
import { renderAll, setSelectedIcon } from "./ui.js";
33

4-
const ICON_BASE = "/public/icons/fontawesome";
4+
const ICON_BASE = "./public/icons/fontawesome";
55

66
// SVG cache to prevent re-fetching
77
const svgCache = new Map();

0 commit comments

Comments
 (0)