From b37c46f12d7ce848f44ad50b91033e88ee33e0ee Mon Sep 17 00:00:00 2001 From: Svallinn <41585298+Svallinn@users.noreply.github.com> Date: Mon, 10 May 2021 05:59:48 +0100 Subject: [PATCH] Revert unintended merged code from "Update package-lock.json" This was caused by an unexpected Weblate interaction with a force push. --- .vscode/tasks.json | 19 +++++++++++++++++++ _scripts/dev-runner.js | 2 +- src/main/index.js | 1 + 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .vscode/tasks.json diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 00000000..3c0971b8 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,19 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "type": "npm", + "script": "dev", + "problemMatcher": [] + }, + { + "type": "npm", + "script": "dev-runner", + "problemMatcher": [], + "label": "npm: dev-runner", + "detail": "node _scripts/dev-runner.js" + } + ] +} diff --git a/_scripts/dev-runner.js b/_scripts/dev-runner.js index fd62145e..2581c3a1 100644 --- a/_scripts/dev-runner.js +++ b/_scripts/dev-runner.js @@ -45,7 +45,7 @@ async function restartElectron() { electronProcess = spawn(electron, [ path.join(__dirname, '../dist/main.js'), - '--enable-logging', // Enable to show logs from all electron processes + // '--enable-logging', Enable to show logs from all electron processes remoteDebugging ? '--inspect=9222' : '', remoteDebugging ? '--remote-debugging-port=9223' : '', ]) diff --git a/src/main/index.js b/src/main/index.js index 795695cb..5697df66 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -212,6 +212,7 @@ function runApp() { async function installDevTools () { try { /* eslint-disable */ + require('devtron').install() require('vue-devtools').install() /* eslint-enable */ } catch (err) {