Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

Commit

Permalink
feat: electronjs update to 5.0.2 with chromium 73.0.3683.121
Browse files Browse the repository at this point in the history
  • Loading branch information
herteleo committed Jun 5, 2019
1 parent 5d52c10 commit 78df3af
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Expand Up @@ -20,9 +20,10 @@
"lint": "vue-cli-service lint",
"electron:build": "npm run generate-icons && npm run generate-changelog-html && vue-cli-service electron:build",
"electron:serve": "npm run generate-changelog-html && vue-cli-service electron:serve",
"postinstall": "electron-builder install-app-deps && npm run generate-icons",
"generate-changelog-html": "node ./scripts/generate-changelog-html.js",
"generate-icons": "node ./scripts/generate-icons.js"
"generate-icons": "node ./scripts/generate-icons.js",
"postinstall": "electron-builder install-app-deps && npm run generate-icons",
"postuninstall": "electron-builder install-app-deps"
},
"dependencies": {
"electron-window-state": "^5.0.3",
Expand Down Expand Up @@ -53,7 +54,7 @@
"@vue/cli-plugin-eslint": "^3.7.0",
"@vue/cli-service": "^3.7.0",
"@vue/eslint-config-airbnb": "^3.0.4",
"electron": "^3.0.13",
"electron": "^5.0.2",
"electron-icon-maker": "0.0.4",
"marked": "^0.6.2",
"move-file": "^1.0.0",
Expand Down
6 changes: 5 additions & 1 deletion src/background.js
Expand Up @@ -27,11 +27,15 @@ if (isDevelopment) {
let mainWindow;

// Standard scheme must be registered before the app is ready
protocol.registerStandardSchemes(['app'], { secure: true });
protocol.registerSchemesAsPrivileged([{ scheme: 'app', privileges: { secure: true } }]);
function createMainWindow() {
const mainWindowState = windowStateKeeper();

const window = new BrowserWindow({
webPreferences: {
nodeIntegration: true,
webviewTag: true,
},
backgroundColor: '#22292f',
frame: false,
show: false,
Expand Down

0 comments on commit 78df3af

Please sign in to comment.