From 330bf49492a8babf5a1fc5f8d4c88f3237a0c1f8 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Sat, 9 Oct 2021 19:55:44 +0200 Subject: feat(preview): image previewing --- org-roam-ui.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'org-roam-ui.el') diff --git a/org-roam-ui.el b/org-roam-ui.el index 8726a76..4b07cde 100644 --- a/org-roam-ui.el +++ b/org-roam-ui.el @@ -237,9 +237,8 @@ This serves the web-build and API over HTTP." (json-encode `((type . "orgText") (data . ,text)))))) (defservlet* file/:file text/plain () - (progn (insert-file-contents-literally (org-link-decode file)) -(httpd-send-header t "text/plain" 200 :Access-Control-Allow-Origin "*"))) +(httpd-send-header t "text/plain" 200 :Access-Control-Allow-Origin "*")) (defservlet* img/:file text/plain () -- cgit v1.2.3