Skip to content

Commit

Permalink
Improve target doc (#1248)
Browse files Browse the repository at this point in the history
* Improve target doc

* Apply suggestions from code review

Co-Authored-By: Lucas G. Devescovi <lucas.devescovi@gmail.com>
  • Loading branch information
kblok and LucasMetal authored Aug 16, 2019
1 parent a3fc19b commit a13dbee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/PuppeteerSharp/Target.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ internal Target(
#endregion

/// <summary>
/// Creates a new <see cref="Page"/>. If the target is not <c>"page"</c> or <c>"background_page"</c> returns <c>null</c>
/// Returns the <see cref="Page"/> associated with the target. If the target is not <c>"page"</c> or <c>"background_page"</c> returns <c>null</c>
/// </summary>
/// <returns>a task that returns a new <see cref="Page"/></returns>
/// <returns>a task that returns a <see cref="Page"/></returns>
public Task<Page> PageAsync()
{
if ((TargetInfo.Type == TargetType.Page || TargetInfo.Type == TargetType.BackgroundPage) && PageTask == null)
Expand Down Expand Up @@ -199,4 +199,4 @@ internal void TargetInfoChanged(TargetInfo targetInfo)
/// <returns>A task that returns a <see cref="CDPSession"/></returns>
public Task<CDPSession> CreateCDPSessionAsync() => Browser.Connection.CreateSessionAsync(TargetInfo);
}
}
}

0 comments on commit a13dbee

Please sign in to comment.