Samples.csproj: WebviewSection: check for WebKit.Global.IsSupported

This commit is contained in:
lytico 2021-07-20 01:52:18 +02:00
parent e4b774da5f
commit 69531abb9c

View file

@ -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());