refactor: address TODO for WebContents type parsing (#18158)
This commit is contained in:
parent
7e2cbf528e
commit
89105e7e57
6 changed files with 10 additions and 19 deletions
|
@ -68,7 +68,7 @@ void BrowserView::Init(v8::Isolate* isolate,
|
|||
const mate::Dictionary& options) {
|
||||
mate::Dictionary web_preferences = mate::Dictionary::CreateEmpty(isolate);
|
||||
options.Get(options::kWebPreferences, &web_preferences);
|
||||
web_preferences.Set("isBrowserView", true);
|
||||
web_preferences.Set("type", "browserView");
|
||||
mate::Handle<class WebContents> web_contents =
|
||||
WebContents::Create(isolate, web_preferences);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue