mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: session argument of app 'session-created' event (#25798)
Co-authored-by: Milan Burda <miburda@microsoft.com>
This commit is contained in:
@@ -950,8 +950,7 @@ gin::Handle<Session> Session::CreateFrom(
|
||||
ElectronBrowserMainParts::Get()->RegisterDestructionCallback(
|
||||
base::BindOnce([](Session* session) { delete session; }, handle.get()));
|
||||
|
||||
App::Get()->EmitCustomEvent("session-created",
|
||||
handle.ToV8().As<v8::Object>());
|
||||
App::Get()->Emit("-session-created", handle.ToV8().As<v8::Object>());
|
||||
|
||||
return handle;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user