Skip to content

Commit

Permalink
Update src/BlazorWebView/src/SharedSource/BlazorWebViewServiceCollect…
Browse files Browse the repository at this point in the history
…ionExtensions.cs

Co-authored-by: Tanay Parikh <TanayParikh@users.noreply.github.com>
  • Loading branch information
javiercn and TanayParikh committed Mar 7, 2022
1 parent 148b384 commit 1f0271b
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,8 @@ public static IServiceCollection AddMauiBlazorWebView(this IServiceCollection se
{
services.AddBlazorWebView();
services.TryAddSingleton(new BlazorWebViewDeveloperTools { Enabled = false });
#if WEBVIEW2_WINFORMS
#elif WEBVIEW2_WPF
#elif WEBVIEW2_MAUI
#if WEBVIEW2_MAUI
services.ConfigureMauiHandlers(static handlers => handlers.AddHandler<IBlazorWebView, BlazorWebViewHandler>());
#else
#error Must define WEBVIEW2_WINFORMS, WEBVIEW2_WPF, WEBVIEW2_MAUI
#endif
return services;
}
Expand Down

0 comments on commit 1f0271b

Please sign in to comment.