diff --git a/Source/Samples/Sections/Widgets/WebviewSection.cs b/Source/Samples/Sections/Widgets/WebviewSection.cs index 7e1ede642..f63239813 100644 --- a/Source/Samples/Sections/Widgets/WebviewSection.cs +++ b/Source/Samples/Sections/Widgets/WebviewSection.cs @@ -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());