|
@@ -30,13 +30,13 @@ The following list includes the breaking API changes planned for Electron 4.0.
|
|
|
|
|
|
```js
|
|
|
// Deprecated
|
|
|
-app.makeSingleInstance(function (argv, cwd) {
|
|
|
-
|
|
|
+app.makeSingleInstance((argv, cwd) => {
|
|
|
+ /* ... */
|
|
|
})
|
|
|
// Replace with
|
|
|
app.requestSingleInstanceLock()
|
|
|
-app.on('second-instance', function (event, argv, cwd) {
|
|
|
-
|
|
|
+app.on('second-instance', (event, argv, cwd) => {
|
|
|
+ /* ... */
|
|
|
})
|
|
|
```
|
|
|
|
|
@@ -212,11 +212,11 @@ screen.getPrimaryDisplay().workArea
|
|
|
|
|
|
```js
|
|
|
// Deprecated
|
|
|
-ses.setCertificateVerifyProc(function (hostname, certificate, callback) {
|
|
|
+ses.setCertificateVerifyProc((hostname, certificate, callback) => {
|
|
|
callback(true)
|
|
|
})
|
|
|
// Replace with
|
|
|
-ses.setCertificateVerifyProc(function (request, callback) {
|
|
|
+ses.setCertificateVerifyProc((request, callback) => {
|
|
|
callback(0)
|
|
|
})
|
|
|
```
|