Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

Commit

Permalink
Merge pull request #128 from vcync/fix/127/windows-10-devtools
Browse files Browse the repository at this point in the history
fix(vue-devtools): removes vue-devtools integration
  • Loading branch information
TimPietrusky authored Jun 8, 2020
2 parents fb03980 + e2ffcaf commit 5c02186
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ import {
Menu
} from "electron";

import {
createProtocol,
installVueDevtools
} from "vue-cli-plugin-electron-builder/lib";
import { createProtocol } from "vue-cli-plugin-electron-builder/lib";

import fs from "fs";
import MediaManager from "./media-manager";
Expand Down Expand Up @@ -320,19 +317,6 @@ app.on("ready", async () => {
"true"
);

if (isDevelopment && !process.env.IS_TEST) {
// Install Vue Devtools
// Devtools extensions are broken in Electron 6.0.0 and greater
// See https://github.com/nklayman/vue-cli-plugin-electron-builder/issues/378 for more info
// Electron will not launch with Devtools extensions installed on Windows 10 with dark mode
// If you are not using Windows 10 dark mode, you may uncomment these lines
// In addition, if the linked issue is closed, you can upgrade electron and uncomment these lines
try {
await installVueDevtools();
} catch (e) {
console.error("Vue Devtools failed to install:", e.toString());
}
}
createWindow();
});

Expand Down

0 comments on commit 5c02186

Please sign in to comment.