Skip to content

Commit

Permalink
fix script name for github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
FurriousFox committed Jul 2, 2024
1 parent 3c7e34a commit 26577e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

<body></body>
<script src="https://unpkg.com/showdown/dist/showdown.min.js"></script>
<script src="index.js"></script>
<script src="bindex.js"></script>
<script>
if ('serviceWorker' in navigator && !navigator.serviceWorker.controller) {
window.addEventListener('load', function () {
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const server = http.createServer((req, res) => {
if (req.url == "/" || req.url == "/index.html") {
res.setHeader("Content-Type", "text/html");
res.end(fs.readFileSync("index.html"));
} else if (req.url == "/index.js") {
} else if (req.url == "/index.js" || req.url == "/bindex.js") {
res.setHeader("Content-Type", "text/javascript");
res.end(fs.readFileSync("bindex.js"));
} else if (req.url.split("?")[0] == "/config.html") {
Expand Down

0 comments on commit 26577e9

Please sign in to comment.