File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
JwtIdentity.Client/Pages/Survey Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 11@page " /survey/{SurveyId:guid}"
22@namespace JwtIdentity.Client.Pages.Survey
33@inherits SurveyModel
4- @rendermode InteractiveServer
54
65<PageTitle >Survey Shark - Survey</PageTitle >
76
Original file line number Diff line number Diff line change @@ -162,10 +162,8 @@ protected override async Task OnInitializedAsync()
162162
163163 protected override async Task OnAfterRenderAsync ( bool firstRender )
164164 {
165- // Only run on the first render
166- // Note: With InteractiveServer render mode, this runs on the server,
167- // but JSRuntime calls are sent to the browser via SignalR
168- if ( ! firstRender )
165+ // Only run JavaScript on the first render in the browser (not during prerendering)
166+ if ( ! firstRender || ! OperatingSystem . IsBrowser ( ) )
169167 {
170168 return ;
171169 }
You can’t perform that action at this time.
0 commit comments