From 03641ca2868d5ef21ffe426fa547dd859ce1c474 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Sat, 9 Oct 2021 14:08:34 +0200 Subject: fix(preview): changed from api routing to emacs server --- util/uniorg.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util/uniorg.tsx') diff --git a/util/uniorg.tsx b/util/uniorg.tsx index c36f662..6d0bb56 100644 --- a/util/uniorg.tsx +++ b/util/uniorg.tsx @@ -16,9 +16,9 @@ export const UniOrg = (props: UniOrgProps) => { const [previewText, setPreviewText] = useState('') - const file = encodeURIComponent(previewNode.file) + const file = encodeURIComponent(encodeURIComponent(previewNode.file)) useEffect(() => { - fetch(`api/notes/${file}`) + fetch(`http://localhost:35901/file/${file}`) .then((res) => { return res.text() }) -- cgit v1.2.3