From ef03c4b7bb532ed91bfc4e7b9c5073f74688637e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=BA=D0=BE=D0=B2=D0=BE=D1=80=D0=BE=D0=B4=D0=B0=20?= =?UTF-8?q?=D0=9D=D0=B8=D0=BA=D0=B8=D1=82=D0=B0=20=D0=90=D0=BD=D0=B4=D1=80?= =?UTF-8?q?=D0=B5=D0=B5=D0=B2=D0=B8=D1=87?= Date: Tue, 13 Aug 2019 00:46:42 +0300 Subject: [PATCH] docs: fix app.on('session-created' example (#19713) It does not have the 'event' argument. Refs: https://github.com/electron/electron/pull/12123 Refs: https://github.com/electron/electron/pull/15236 Refs: https://github.com/electron/electron/issues/15203 --- docs/api/app.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/app.md b/docs/api/app.md index ffb4546bc06f..9a7ffeb496c3 100644 --- a/docs/api/app.md +++ b/docs/api/app.md @@ -390,7 +390,7 @@ Emitted when Electron has created a new `session`. ```javascript const { app } = require('electron') -app.on('session-created', (event, session) => { +app.on('session-created', (session) => { console.log(session) }) ```