Skip to content

Commit

Permalink
refactor: return no-op proxy for Kirby 4 panel.content shim
Browse files Browse the repository at this point in the history
  • Loading branch information
johannschopplich committed Dec 10, 2024
1 parent f644ccf commit 408d7fa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/composables/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
},
});
Expand Down

0 comments on commit 408d7fa

Please sign in to comment.