Skip to content

Commit

Permalink
fix recursion
Browse files Browse the repository at this point in the history
  • Loading branch information
dskvr committed Apr 11, 2024
1 parent c0c7b46 commit 611f006
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/core/MRPBlockLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export class BlockLoader extends MRPData {
}

get config(): MRPConfig | undefined {
return this.config
return this._config
}

get components(): Record<string, NodeModule> {
Expand Down
4 changes: 2 additions & 2 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import Header from '$lib/components/layout/Header.svelte';
import Footer from '$lib/components/layout/Footer.svelte';
import { setContext, onMount } from 'svelte';
import { setContext, onMount, tick } from 'svelte';
import { writable, type Writable } from 'svelte/store'
import { MY_RELAY_PAGE, THEME_CSS } from '$lib/contextKeys';
Expand All @@ -26,7 +26,7 @@
const mount = async () => {
if(browser) {
await loadTheme();
await tick()
theme.subscribe((value) => {
loadTheme(value);
});
Expand Down

0 comments on commit 611f006

Please sign in to comment.