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.
package/dist/server/index.js
CHANGED
|
@@ -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 = '
|
|
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
|
-
|
|
438
|
+
const path = require('path');
|
|
439
|
+
this.configFilePath = path.join(__dirname, '../config/remote-connections.json');
|
|
439
440
|
this.loadConnectionsFromDisk();
|
|
440
441
|
}
|
|
441
442
|
/**
|