File tree Expand file tree Collapse file tree 5 files changed +5
-7
lines changed Expand file tree Collapse file tree 5 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 2121 %sveltekit.head%
2222 </ head >
2323
24- < body >
24+ < body style =" background-color: var(--background-one) " >
2525 < div style ="display: contents "> %sveltekit.body%</ div >
2626 </ body >
2727</ html >
Original file line number Diff line number Diff line change 2323body {
2424 margin : 0 ;
2525 padding : 0 ;
26- background-color : var (--background-one );
2726}
2827
2928html ,
Original file line number Diff line number Diff line change @@ -16,8 +16,6 @@ export function api_base_url(): string {
1616 if ( browser ) {
1717 const apiUrl = localStorage . getItem ( URL_KEY ) || default_api_url ;
1818
19- set_about_info ( apiUrl ) ;
20-
2119 return apiUrl ;
2220 }
2321
@@ -46,11 +44,11 @@ export function set_api_base_url(url?: string) {
4644 localStorage . removeItem ( URL_KEY ) ;
4745 } else {
4846 localStorage . setItem ( URL_KEY , url ) ;
49- set_about_info ( url ) ;
5047 }
48+ set_about_info ( api_base_url ( ) ) ;
5149}
5250
53- function set_about_info ( apiUrl : string ) {
51+ export function set_about_info ( apiUrl : string ) {
5452 if ( ! localStorage . getItem ( STATUS_KEY ) || ! localStorage . getItem ( EMAIL_KEY ) ) {
5553 fetch ( `${ apiUrl } /v4/about` )
5654 . then ( ( response ) => ( response . ok ? response . json ( ) : null ) )
Original file line number Diff line number Diff line change 7878
7979<style lang =" scss" >
8080 footer {
81- background-color : var (--background-one );
8281 max-width : min (87% , 100rem );
8382 padding : 5rem 0rem ;
8483 margin : 0 auto ;
Original file line number Diff line number Diff line change 2424 import { events as themeEvents } from ' $util/themeEvents' ;
2525
2626 import FooterHost from ' $layout/Footer/FooterHost.svelte' ;
27+ import { api_base_url , set_about_info } from ' $data/api/settings' ;
2728
2829 const queryClient = new QueryClient ({
2930 defaultOptions: {
5051 );
5152
5253 onMount (() => {
54+ set_about_info (api_base_url ());
5355 new DateTriggerEventHandler (themeEvents );
5456
5557 isRestoring .set (true );
You can’t perform that action at this time.
0 commit comments