mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
refactor: use gin_helper::Dictionary::CreateEmpty() helper (#40140)
This commit is contained in:
@@ -203,8 +203,7 @@ void UsbChooserContext::RevokeObjectPermissionInternal(
|
||||
if (session) {
|
||||
v8::Isolate* isolate = JavascriptEnvironment::GetIsolate();
|
||||
v8::HandleScope scope(isolate);
|
||||
gin_helper::Dictionary details =
|
||||
gin_helper::Dictionary::CreateEmpty(isolate);
|
||||
auto details = gin_helper::Dictionary::CreateEmpty(isolate);
|
||||
details.Set("device", object);
|
||||
details.Set("origin", origin.Serialize());
|
||||
session->Emit("usb-device-revoked", details);
|
||||
|
||||
Reference in New Issue
Block a user