Use Interop
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
@page "/"
|
||||
@page "/"
|
||||
@namespace Oqtane.Pages
|
||||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
@using System.Globalization
|
||||
@ -48,12 +48,6 @@
|
||||
@if (Configuration.GetSection("Runtime").Value == "WebAssembly")
|
||||
{
|
||||
<script src="_framework/blazor.webassembly.js"></script>
|
||||
<script>
|
||||
window.oqtaneCulture = {
|
||||
get: () => window.localStorage['OqtaneCulture'],
|
||||
set: (value) => window.localStorage['OqtaneCulture'] = value
|
||||
};
|
||||
</script>
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -362,5 +362,11 @@ Oqtane.Interop = {
|
||||
setInterval(function () {
|
||||
window.location.href = url;
|
||||
}, wait * 1000);
|
||||
},
|
||||
getCulture: function () {
|
||||
return window.localStorage['OqtaneCulture'];
|
||||
},
|
||||
setCulture: function (culture) {
|
||||
window.localStorage['OqtaneCulture'] = culture;
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user