File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/BootstrapBlazor.Server/Components/Layout Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ protected override async Task OnInitializedAsync()
7676 await base . OnInitializedAsync ( ) ;
7777
7878 var module = await JSRuntime . LoadModule ( $ "{ WebsiteOption . Value . JSModuleRootPath } Layout/BaseLayout.razor.js") ;
79- await module . InvokeVoidAsync ( "initTheme " ) ;
79+ await module . InvokeVoidAsync ( "doTask " ) ;
8080 _init = true ;
8181 }
8282
Original file line number Diff line number Diff line change 11import { getTheme , setTheme } from "../../_content/BootstrapBlazor/modules/utility.js"
22
3- export function initTheme ( ) {
3+ function initTheme ( ) {
44 const currentTheme = getTheme ( ) ;
55 setTheme ( currentTheme , false ) ;
66}
7+
8+ export function doTask ( ) {
9+ initTheme ( ) ;
10+ }
You can’t perform that action at this time.
0 commit comments