Skip to content

Commit

Permalink
Merge 25e2569 into 148d0ac
Browse files Browse the repository at this point in the history
  • Loading branch information
chacham2 authored Jul 9, 2020
2 parents 148d0ac + 25e2569 commit b7facc5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CefSharp/WebBrowserExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public static void RegisterJsObject(this IWebBrowser webBrowser, string name, ob
/// <param name="options">binding options - camelCaseJavascriptNames default to true </param>
/// <exception cref="Exception">Browser is already initialized. RegisterJsObject must be +
/// called before the underlying CEF browser is created.</exception>
/// <remarks>The registered methods can only be called in an async way, they will all return immeditaly and the resulting
/// <remarks>The registered methods can only be called in an async way, they will all return immediately and the resulting
/// object will be a standard javascript Promise object which is usable to wait for completion or failure.</remarks>
[Obsolete("This method has been removed, see https://github.com/cefsharp/CefSharp/issues/2990 for details on migrating your code.")]
public static void RegisterAsyncJsObject(this IWebBrowser webBrowser, string name, object objectToBind, BindingOptions options = null)
Expand Down Expand Up @@ -241,7 +241,7 @@ public static Task<string> GetTextAsync(this IWebBrowser browser)
/// <param name="browser">The ChromiumWebBrowser instance this method extends.</param>
/// <param name="methodName">The javascript method name to execute.</param>
/// <param name="args">the arguments to be passed as params to the method. Args are encoded using
/// <see cref="EncodeScriptParam"/>, you can provide a custom implementation if you require a custom implementation.</param>
/// <see cref="EncodeScriptParam"/>, you can provide a custom implementation if you require one.</param>
public static void ExecuteScriptAsync(this IWebBrowser browser, string methodName, params object[] args)
{
var script = GetScriptForJavascriptMethodWithArgs(methodName, args);
Expand Down Expand Up @@ -282,7 +282,7 @@ public static void ExecuteScriptAsync(this IWebBrowser browser, string script)
/// </remarks>
/// <param name="webBrowser">The ChromiumWebBrowser instance this method extends.</param>
/// <param name="script">The Javascript code that should be executed.</param>
/// <param name="oneTime">(Optional) The script will only be executed on first page load, subsiquent page loads will be ignored.</param>
/// <param name="oneTime">(Optional) The script will only be executed on first page load, subsequent page loads will be ignored.</param>
public static void ExecuteScriptAsyncWhenPageLoaded(this IWebBrowser webBrowser, string script, bool oneTime = true)
{
var useLoadingStateChangedEventHandler = webBrowser.IsBrowserInitialized == false || oneTime == false;
Expand Down

0 comments on commit b7facc5

Please sign in to comment.