Skip to content

Commit

Permalink
module error was fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadali-arjomand committed Aug 24, 2023
1 parent 50fa28d commit c12d1f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions inner/singlighter.inner.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ function serveCmd() {
url = fs.lstatSync(req.url).isFile() ? "./" + req.url : `./${req.url}/index.html`;
let output = fs.readFileSync(url);
res.write(output);
if (url.substring(url.length-2, url.length) == js) res.writeHead(200, {'Content-type': "application/javascript"})
res.end();
};

Expand Down

0 comments on commit c12d1f1

Please sign in to comment.