This repository has been archived on 2021-04-30. You can view files and clone it, but cannot push or open issues or pull requests.
blazing-workshop/BlazingPizza.Client/JSRuntimeExtensions.cs

14 lines
328 B
C#
Raw Permalink Normal View History

2020-12-17 15:52:43 +00:00
using Microsoft.JSInterop;
using System.Threading.Tasks;
namespace BlazingPizza.Client
{
public static class JSRuntimeExtensions
{
public static ValueTask<bool> Confirm(this IJSRuntime jsRuntime, string message)
{
return jsRuntime.InvokeAsync<bool>("confirm", message);
}
}
}