This commit is contained in:
Steve Kinney 2016-05-04 12:02:24 -06:00
Π ΠΎΠ΄ΠΈΡ‚Π΅Π»ΡŒ afe0296e0f
ΠšΠΎΠΌΠΌΠΈΡ‚ 3271492c86
1 ΠΈΠ·ΠΌΠ΅Π½Ρ‘Π½Π½Ρ‹Ρ… Ρ„Π°ΠΉΠ»ΠΎΠ²: 5 Π΄ΠΎΠ±Π°Π²Π»Π΅Π½ΠΈΠΉ ΠΈ 5 ΡƒΠ΄Π°Π»Π΅Π½ΠΈΠΉ

ΠŸΡ€ΠΎΡΠΌΠΎΡ‚Ρ€Π΅Ρ‚ΡŒ Ρ„Π°ΠΉΠ»

@ -60,16 +60,16 @@ If you want a quick fix, you can make the variables global by changing your
code from this:
```javascript
app.on('ready', function() {
var tray = new Tray('/path/to/icon.png');
app.on('ready', () => {
const tray = new Tray('/path/to/icon.png');
})
```
to this:
```javascript
var tray = null;
app.on('ready', function() {
let tray = null;
app.on('ready', () => {
tray = new Tray('/path/to/icon.png');
})
```
@ -84,7 +84,7 @@ To solve this, you can turn off node integration in Electron:
```javascript
// In the main process.
var mainWindow = new BrowserWindow({
let mainWindow = new BrowserWindow({
webPreferences: {
nodeIntegration: false
}