diff options
Diffstat (limited to 'docs/src/app.ffi.mjs')
-rw-r--r-- | docs/src/app.ffi.mjs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/docs/src/app.ffi.mjs b/docs/src/app.ffi.mjs deleted file mode 100644 index 3983f27..0000000 --- a/docs/src/app.ffi.mjs +++ /dev/null @@ -1,10 +0,0 @@ -export function base() { - return import.meta.env.BASE_URL; -} - -export const fetch_post = (path, dispatch) => { - fetch(`${import.meta.env.BASE_URL}page/${path.slice(1)}.md`) - .then((res) => res.text()) - .then((content) => dispatch(content)) - .catch(console.error); -}; |