summaryrefslogtreecommitdiff
path: root/client/node_modules/electron/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/node_modules/electron/index.js')
-rw-r--r--client/node_modules/electron/index.js21
1 files changed, 0 insertions, 21 deletions
diff --git a/client/node_modules/electron/index.js b/client/node_modules/electron/index.js
deleted file mode 100644
index ccde246..0000000
--- a/client/node_modules/electron/index.js
+++ /dev/null
@@ -1,21 +0,0 @@
-const fs = require('fs');
-const path = require('path');
-
-const pathFile = path.join(__dirname, 'path.txt');
-
-function getElectronPath () {
- let executablePath;
- if (fs.existsSync(pathFile)) {
- executablePath = fs.readFileSync(pathFile, 'utf-8');
- }
- if (process.env.ELECTRON_OVERRIDE_DIST_PATH) {
- return path.join(process.env.ELECTRON_OVERRIDE_DIST_PATH, executablePath || 'electron');
- }
- if (executablePath) {
- return path.join(__dirname, 'dist', executablePath);
- } else {
- throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again');
- }
-}
-
-module.exports = getElectronPath();