Samples.csproj: WebviewSection: check for WebKit.Global.IsSupported
This commit is contained in:
parent
e4b774da5f
commit
69531abb9c
1 changed files with 5 additions and 0 deletions
|
@ -19,6 +19,11 @@ namespace Samples
|
|||
|
||||
public WebviewSection()
|
||||
{
|
||||
if (!WebKit.Global.IsSupported) {
|
||||
AddItem(($"{nameof(WebKit.WebView)}",new Label($"{typeof(WebView).Namespace} is not suported on your OS")));
|
||||
return;
|
||||
}
|
||||
|
||||
AddItem(ShowHtml());
|
||||
AddItem(ShowUri());
|
||||
|
||||
|
|
Loading…
Reference in a new issue