a fork of iceshrimp.net but a tweaked frontend to my personal liking. waow
fediverse social-media social iceshrimp fedi
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

[backend/razoor] Fix FrontendSPA blazor environment

As of net10, standalone Blazor WASM apps no longer respect the ASP environment set in launchSettings.json, so we have to work around this.

+8 -1
+8 -1
Iceshrimp.Backend/Pages/Shared/FrontendSPA.cshtml
··· 1 1 @page 2 + @inject IWebHostEnvironment Env 2 3 @{ 3 4 Layout = null; 4 5 } ··· 41 42 <a class="dismiss">🗙</a> 42 43 </div> 43 44 44 - <script src="~/_framework/blazor.webassembly.js"></script> 45 + @* Switch this back to autostart (and remove the script below & the injected service) after switching to a Blazor Web App *@ 46 + <script src="~/_framework/blazor.webassembly.js" autostart="false"></script> 47 + <script> 48 + Blazor.start({ 49 + environment: "@Env.EnvironmentName" 50 + }); 51 + </script> 45 52 <script src="~/Utility.js"></script> 46 53 <script>navigator.serviceWorker.register('service-worker.js');</script> 47 54 </body>