From 25b223020d34f0efbbcde752a13301d5532f3089 Mon Sep 17 00:00:00 2001 From: Akshay Deo Date: Wed, 21 Sep 2022 11:21:12 +0530 Subject: [PATCH] Update shell/renderer/api/electron_api_context_bridge.cc Co-authored-by: Darshan Sen --- shell/renderer/api/electron_api_context_bridge.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/renderer/api/electron_api_context_bridge.cc b/shell/renderer/api/electron_api_context_bridge.cc index 3aa96a80c6724..9154800654efe 100644 --- a/shell/renderer/api/electron_api_context_bridge.cc +++ b/shell/renderer/api/electron_api_context_bridge.cc @@ -575,7 +575,7 @@ void ExposeAPIInWorld(v8::Isolate* isolate, CHECK(frame); v8::Local 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(),