Skip to content

Commit ee20160

Browse files
committed
Fixes index.html error when gui is executed from another CWD
1 parent e71d09f commit ee20160

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

build/nelson.gui.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ app.set('port', process.env.NELSON_GUI_PORT || program.port);
2222

2323
app.use(express.static(path.join(__dirname)));
2424
app.all('/*/*', function (req, res) {
25-
res.sendfile('index.html');
25+
res.sendfile(path.join(__dirname, 'index.html'));
2626
});
2727

2828
// Listen for requests

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nelson.gui",
3-
"version": "0.1.2",
3+
"version": "0.1.3",
44
"repository": {
55
"type": "git",
66
"url": "https://github.com/SemkoDev/nelson.gui.git"

src/nelson.gui.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ app.set('port', process.env.NELSON_GUI_PORT || program.port);
2121

2222
app.use(express.static(path.join(__dirname)));
2323
app.all('/*/*', function (req, res) {
24-
res.sendfile('index.html');
24+
res.sendfile(path.join(__dirname, 'index.html'));
2525
});
2626

2727
// Listen for requests

0 commit comments

Comments
 (0)