Skip to content

Commit

Permalink
Update shell/renderer/api/electron_api_context_bridge.cc
Browse files Browse the repository at this point in the history
Co-authored-by: Darshan Sen <raisinten@gmail.com>
  • Loading branch information
akshaydeo and RaisinTen committed Sep 21, 2022
1 parent 8092577 commit 25b2230
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell/renderer/api/electron_api_context_bridge.cc
Expand Up @@ -575,7 +575,7 @@ void ExposeAPIInWorld(v8::Isolate* isolate,
CHECK(frame);

v8::Local<v8::Context> target_context =
world_id == 0 ? frame->MainWorldScriptContext()
world_id == WorldIDs::MAIN_WORLD_ID ? frame->MainWorldScriptContext()
: frame->GetScriptContextFromWorldId(isolate, world_id);

gin_helper::Dictionary global(target_context->GetIsolate(),
Expand Down

0 comments on commit 25b2230

Please sign in to comment.