Skip to content

Commit

Permalink
refactor: use getter property for RFH
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmaddock committed Oct 13, 2023
1 parent 3e70692 commit f7ffba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell/browser/api/electron_api_web_contents.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1870,7 +1870,7 @@ bool WebContents::EmitNavigationEvent(
dict.Set("url", url);
dict.Set("isSameDocument", is_same_document);
dict.Set("isMainFrame", is_main_frame);
dict.Set("frame", frame_host);
dict.SetGetter("frame", frame_host);
dict.SetGetter("initiator", initiator_frame_host);

EmitWithoutEvent(event_name, event, url, is_same_document, is_main_frame,
Expand Down

0 comments on commit f7ffba3

Please sign in to comment.