95fdb59ea6
Former-commit-id: b39a328747c2f3414dc52e009fb6f0aa80ca2492
14 lines
323 B
C#
14 lines
323 B
C#
using Microsoft.JSInterop;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BlazingPizza.Client
|
|
{
|
|
public static class JSRuntimeExtensions
|
|
{
|
|
public static Task<bool> Confirm(this IJSRuntime jsRuntime, string message)
|
|
{
|
|
return jsRuntime.InvokeAsync<bool>("confirm", message);
|
|
}
|
|
}
|
|
}
|