Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmoradi committed Jul 9, 2024
1 parent aee8e08 commit 11e6332
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Microsoft.AspNetCore.Components.WebAssembly.Services;
//+:cnd:noEmit
using Microsoft.AspNetCore.Components.WebAssembly.Services;

namespace Boilerplate.Client.Core.Components.Pages.Dashboard;

Expand All @@ -15,7 +16,14 @@ protected async override Task OnInitAsync()
{
if (OperatingSystem.IsBrowser())
{
await lazyAssemblyLoader.LoadAssembliesAsync(["System.Private.Xml.wasm", "System.Data.Common.wasm", "Newtonsoft.Json.wasm"]);
await lazyAssemblyLoader.LoadAssembliesAsync([
//#if (sample == "Admin" && offlineDb == false)
"System.Private.Xml.wasm", "System.Data.Common.wasm",
//#endif
//#if (sample == "Admin")
"Newtonsoft.Json.wasm"]
//#endif
);
}
}
finally
Expand Down

0 comments on commit 11e6332

Please sign in to comment.