mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 03:32:37 +00:00
Add ThrowExceptionIfBrowserNotInitialized to WinForms GetBrowser
Haven't done WPF yet as it's IsBrowserInitialized implementation is a DependencyProperty which will likely cause problems if run on a CEF thread
This commit is contained in:
@@ -335,6 +335,8 @@ namespace CefSharp.WinForms
|
||||
|
||||
public IBrowser GetBrowser()
|
||||
{
|
||||
this.ThrowExceptionIfBrowserNotInitialized();
|
||||
|
||||
return managedCefBrowserAdapter.GetBrowser();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user