ezpm2gui 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -215,7 +215,7 @@ function createServer() {
215
215
  });
216
216
  // Catch-all route to return the React app
217
217
  app.get('*', (req, res) => {
218
- const indexPath = 'D:/Personal/ezpm2gui/src/client/build/index.html';
218
+ const indexPath = path_1.default.join(__dirname, '../../src/client/build/index.html');
219
219
  console.log('Trying to serve index.html from:', indexPath);
220
220
  const fs = require('fs');
221
221
  if (fs.existsSync(indexPath)) {
@@ -435,7 +435,8 @@ exports.RemoteConnection = RemoteConnection;
435
435
  class RemoteConnectionManager {
436
436
  constructor() {
437
437
  this.connections = new Map();
438
- this.configFilePath = 'D:/Personal/ezpm2gui/src/server/config/remote-connections.json';
438
+ const path = require('path');
439
+ this.configFilePath = path.join(__dirname, '../config/remote-connections.json');
439
440
  this.loadConnectionsFromDisk();
440
441
  }
441
442
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ezpm2gui",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "main": "dist/server/index.js",
5
5
  "bin": {
6
6
  "ezpm2gui": "bin/ezpm2gui.js",