From 408d7fa714d9252e3e63bdc7292dca67790cbd5b Mon Sep 17 00:00:00 2001 From: Johann Schopplich Date: Tue, 10 Dec 2024 16:43:46 +0100 Subject: [PATCH] refactor: return no-op proxy for Kirby 4 `panel.content` shim --- src/composables/content.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/composables/content.ts b/src/composables/content.ts index adf3240..9c19f06 100644 --- a/src/composables/content.ts +++ b/src/composables/content.ts @@ -30,9 +30,7 @@ export function useContent() { : new Proxy({} as PanelContent, { get() { return () => { - throw new Error( - 'The "window.panel.content" API is not available in Kirby 4.', - ); + // `window.panel.content` is not available in Kirby 4 }; }, });