summaryrefslogtreecommitdiff
path: root/util/uniorg.tsx
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-10-09 14:08:34 +0200
committerThomas F. K. Jorna <[email protected]>2021-10-09 14:08:34 +0200
commit03641ca2868d5ef21ffe426fa547dd859ce1c474 (patch)
tree73500c4a178f25f2d34b66c4dccdbcf10ee7ee83 /util/uniorg.tsx
parent2384b30a244c7d6477e54de5385fe7f1cc62d43a (diff)
fix(preview): changed from api routing to emacs server
Diffstat (limited to 'util/uniorg.tsx')
-rw-r--r--util/uniorg.tsx4
1 files changed, 2 insertions, 2 deletions
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()
})