14 lines
328 B
C#
14 lines
328 B
C#
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);
|
|
}
|
|
}
|
|
}
|