add Platform property to SiteState and populate on both Web and .NET MAUI
This commit is contained in:
@ -21,6 +21,7 @@ else
|
||||
Parameters = new Dictionary<string, object>();
|
||||
Parameters.Add(new KeyValuePair<string, object>("RenderMode", RenderModes.Interactive));
|
||||
Parameters.Add(new KeyValuePair<string, object>("Runtime", Runtimes.Hybrid));
|
||||
Parameters.Add(new KeyValuePair<string, object>("Platform", DeviceInfo.Current.Platform.ToString()));
|
||||
|
||||
if (MauiConstants.UseAppSettings)
|
||||
{
|
||||
|
@ -24,7 +24,7 @@ public static class MauiProgram
|
||||
builder.Services.AddMauiBlazorWebView();
|
||||
#if DEBUG
|
||||
builder.Services.AddBlazorWebViewDeveloperTools();
|
||||
#endif
|
||||
#endif
|
||||
|
||||
var apiurl = LoadAppSettings();
|
||||
|
||||
|
Reference in New Issue
Block a user