Interop local storage APIs should be generic

This commit is contained in:
hishamco
2020-12-03 13:37:18 +03:00
parent fa3cc48fd0
commit 1b3cc2c44e
4 changed files with 12 additions and 12 deletions

View File

@ -94,7 +94,7 @@ namespace Oqtane.Client
var host = builder.Build();
var jsRuntime = host.Services.GetRequiredService<IJSRuntime>();
var interop = new Interop(jsRuntime);
var culture = await interop.getCulture();
var culture = await interop.GetLocalStorage("OqtaneCulture");
if (culture != null)
{
var cultureInfo = CultureInfo.GetCultureInfo(culture);