remove Microsoft.AspNetCore.Http
This commit is contained in:
@ -1,7 +1,5 @@
|
||||
@namespace Oqtane.UI
|
||||
@using Microsoft.AspNetCore.Http
|
||||
@inject IInstallationService InstallationService
|
||||
@inject IJSRuntime JSRuntime
|
||||
@inject SiteState SiteState
|
||||
|
||||
@if (_initialized)
|
||||
@ -48,9 +46,6 @@
|
||||
[Parameter]
|
||||
public string Platform { get; set; } = "";
|
||||
|
||||
[CascadingParameter]
|
||||
HttpContext HttpContext { get; set; }
|
||||
|
||||
private bool _initialized = false;
|
||||
private bool _installed = false;
|
||||
private string _display = "display: none;";
|
||||
@ -62,7 +57,7 @@
|
||||
SiteState.AntiForgeryToken = AntiForgeryToken;
|
||||
SiteState.AuthorizationToken = AuthorizationToken;
|
||||
SiteState.Platform = Platform;
|
||||
SiteState.IsPrerendering = (HttpContext != null) ? true : false;
|
||||
SiteState.IsPrerendering = !RendererInfo.IsInteractive;
|
||||
|
||||
if (Runtime == Runtimes.Hybrid)
|
||||
{
|
||||
|
Reference in New Issue
Block a user