chore: fix typos (#34731)
This commit is contained in:
parent
e5db178ab6
commit
98cd16d336
7 changed files with 7 additions and 8 deletions
|
@ -2170,7 +2170,7 @@ void WebContents::LoadURL(const GURL& url,
|
|||
params.transition_type = ui::PageTransitionFromInt(
|
||||
ui::PAGE_TRANSITION_TYPED | ui::PAGE_TRANSITION_FROM_ADDRESS_BAR);
|
||||
params.override_user_agent = content::NavigationController::UA_OVERRIDE_TRUE;
|
||||
// Discord non-committed entries to ensure that we don't re-use a pending
|
||||
// Discard non-committed entries to ensure that we don't re-use a pending
|
||||
// entry
|
||||
web_contents()->GetController().DiscardNonCommittedEntries();
|
||||
web_contents()->GetController().LoadURLWithParams(params);
|
||||
|
|
|
@ -176,7 +176,7 @@ void NativeWindow::InitFromOptions(const gin_helper::Dictionary& options) {
|
|||
|
||||
// By default the window has a default maximum size that prevents it
|
||||
// from being resized larger than the screen, so we should only set this
|
||||
// if th user has passed in values.
|
||||
// if the user has passed in values.
|
||||
if (have_max_height || have_max_width || !max_size.IsEmpty())
|
||||
size_constraints.set_maximum_size(gfx::Size(max_width, max_height));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue