Skip to content
This repository was archived by the owner on Apr 2, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion activity-monitor/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ app.once('ready', () => {
// set the background color to black
backgroundColor: "#111",
// Don't show the window until it's ready, this prevents any white flickering
show: false
show: false,
// Set nodeIntegration true //default false
webPreferences:{
nodeIntegration:true
}
})

window.loadURL(url.format({
Expand Down
2 changes: 1 addition & 1 deletion activity-monitor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
},
"license": "ISC",
"devDependencies": {
"electron": "^3.0.2"
"electron": "^7.1.7"
}
}
2 changes: 1 addition & 1 deletion electron-tray/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
},
"license": "ISC",
"devDependencies": {
"electron": "^3.0.2"
"electron": "^7.1.7"
}
}
6 changes: 5 additions & 1 deletion hash/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ app.once('ready', () => {
// background color of the page, this prevents any white flickering
backgroundColor: "#D6D8DC",
// Don't show the window until it's ready, this prevents any white flickering
show: false
show: false,
// Set nodeIntegration true //default false
webPreferences:{
nodeIntegration:true
}
})

// Load a URL in the window to the local index.html path
Expand Down
2 changes: 1 addition & 1 deletion hash/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
},
"license": "ISC",
"devDependencies": {
"electron": "^3.0.2"
"electron": "^7.1.7"
}
}
6 changes: 5 additions & 1 deletion mirror/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ app.once('ready', () => {
// Make the window transparent
transparent: true,
// Remove the frame from the window
frame: false
frame: false,
// Set nodeIntegration true //default false
webPreferences:{
nodeIntegration:true
}
})

// Load a URL in the window to the local index.html path
Expand Down
2 changes: 1 addition & 1 deletion mirror/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
},
"license": "ISC",
"devDependencies": {
"electron": "^3.0.2"
"electron": "^7.1.7"
}
}
7 changes: 5 additions & 2 deletions mirror/window.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
// Run this function after the page has loaded
$(() => {
const electron = require('electron')
const {remote} = require('electron')

// get screen through remote module
const {screen}=remote

const display = electron.screen.getPrimaryDisplay() // http://electron.atom.io/docs/api/screen
const display = screen.getPrimaryDisplay() // http://electron.atom.io/docs/api/screen

const constraints = {
video: {
Expand Down
6 changes: 5 additions & 1 deletion prices/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ app.once('ready', () => {
// Don't show the window until it ready, this prevents any white flickering
show: false,
// Don't allow the window to be resized.
resizable: false
resizable: false,
// Set nodeIntegration true //default false
webPreferences:{
nodeIntegration:true
}
})

// Load a URL in the window to the local index.html path
Expand Down
2 changes: 1 addition & 1 deletion prices/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"license": "ISC",
"devDependencies": {
"electron": "^3.0.2"
"electron": "^7.1.7"
},
"dependencies": {
"papaparse": "^4.6.0"
Expand Down
2 changes: 1 addition & 1 deletion url/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
},
"license": "ISC",
"devDependencies": {
"electron": "^3.0.2"
"electron": "^7.1.7"
}
}