Skip to content

Commit 0b93b42

Browse files
committed
fix toggle button not styled
1 parent b6bc455 commit 0b93b42

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

index.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<link rel="stylesheet" href="style.css">
5-
<!-- Include the external JavaScript file -->
4+
<link rel="stylesheet" href="/style.css">
65
<script src="/switcher.js"></script>
76
</head>
87
<body>

index.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,6 @@ app.use((req, res, next) => {
2525
next();
2626
});
2727

28-
app.get('/style.css', (req, res) => {
29-
const cssPath = path.join(__dirname, '/style.css');
30-
res.setHeader('Content-Type', 'text/css');
31-
fs.createReadStream(cssPath).pipe(res);
32-
});
33-
3428
app.get('/', (req, res) => {
3529
const indexPath = path.join(__dirname, '/index.html');
3630
res.setHeader('Content-Type', 'text/html');
File renamed without changes.

0 commit comments

Comments
 (0)