diff options
Diffstat (limited to 'MatrixRoomUtils.Web/App.razor')
-rw-r--r-- | MatrixRoomUtils.Web/App.razor | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/MatrixRoomUtils.Web/App.razor b/MatrixRoomUtils.Web/App.razor index c7730d1..4e2789d 100644 --- a/MatrixRoomUtils.Web/App.razor +++ b/MatrixRoomUtils.Web/App.razor @@ -9,4 +9,17 @@ <p role="alert">Sorry, there's nothing at this address.</p> </LayoutView> </NotFound> -</Router> \ No newline at end of file +</Router> + +@code { + protected override async Task OnInitializedAsync() + { + if (!RuntimeCache.WasLoaded) + { + await LocalStorageWrapper.LoadFromLocalStorage(LocalStorage); + Console.WriteLine("Loaded from local storage"); + StateHasChanged(); + } + } + +} \ No newline at end of file |