|
@@ -5,7 +5,6 @@ import { createProtocol } from "vue-cli-plugin-electron-builder/lib";
|
|
// import installExtension, { VUEJS_DEVTOOLS } from 'electron-devtools-installer'
|
|
// import installExtension, { VUEJS_DEVTOOLS } from 'electron-devtools-installer'
|
|
const isDevelopment = process.env.NODE_ENV !== "production";
|
|
const isDevelopment = process.env.NODE_ENV !== "production";
|
|
// const Store = require('electron-store');
|
|
// const Store = require('electron-store');
|
|
-const path = require("path");
|
|
|
|
|
|
|
|
// Scheme must be registered before the app is ready
|
|
// Scheme must be registered before the app is ready
|
|
protocol.registerSchemesAsPrivileged([
|
|
protocol.registerSchemesAsPrivileged([
|
|
@@ -17,7 +16,6 @@ async function createWindow() {
|
|
const win = new BrowserWindow({
|
|
const win = new BrowserWindow({
|
|
width: 800,
|
|
width: 800,
|
|
height: 600,
|
|
height: 600,
|
|
- icon: path.join(__dirname, "../public/favicon.ico"),
|
|
|
|
webPreferences: {
|
|
webPreferences: {
|
|
// Use pluginOptions.nodeIntegration, leave this alone
|
|
// Use pluginOptions.nodeIntegration, leave this alone
|
|
// See nklayman.github.io/vue-cli-plugin-electron-builder/guide/security.html#node-integration for more info
|
|
// See nklayman.github.io/vue-cli-plugin-electron-builder/guide/security.html#node-integration for more info
|