How to add an implementation of JS in CefSharp?

like add a new method
CefSharpSettings.LegacyJavascriptBindingEnabled = true;
CefSharpSettings.WcfEnabled = true;
chromeBrowser.JavascriptObjectRepository.Register("DevForm_class," new DevForm_class(chromeBrowser, this), isAsync: false, options: BindingOptions.DefaultBinder);

added here
public Form1()
// after 

but get the error

System.Exception: The ChromiumWebBrowser instance creates the underlying Chromium Embedded Framework (CEF) browser instance in an async fashion. The undelying CefBrowser instance is not yet initialized. Use the IsBrowserInitializedChanged event and check the IsBrowserInitialized property to determine when the browser has been initialized.

I think the answer in the allotted unit
but how to overcome don't know(
add the JS old method does not work at all
April 19th 20 at 12:40
0 answer

Find more questions by tags C#