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:
amaitland
2015-07-01 19:58:54 +10:00
parent df94d54a61
commit cf10fdf9dc
+2
View File
@@ -335,6 +335,8 @@ namespace CefSharp.WinForms
public IBrowser GetBrowser()
{
this.ThrowExceptionIfBrowserNotInitialized();
return managedCefBrowserAdapter.GetBrowser();
}
}