mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 06:21:44 +01:00
* Rewrite the Notification dropdown with Blazor * Test fix --------- Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
14 lines
453 B
C#
14 lines
453 B
C#
using Microsoft.CodeAnalysis.CSharp.Syntax;
|
|
using Microsoft.JSInterop;
|
|
|
|
namespace BTCPayServer.Blazor
|
|
{
|
|
public static class BlazorExtensions
|
|
{
|
|
public static bool IsPreRendering(this IJSRuntime runtime)
|
|
{
|
|
// The peculiar thing in prerender is that Blazor circuit isn't yet created, so we can't use JSInterop
|
|
return !(bool)runtime.GetType().GetProperty("IsInitialized").GetValue(runtime);
|
|
}
|
|
}
|
|
}
|