diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-10-09 19:55:44 +0200 |
---|---|---|
committer | Thomas F. K. Jorna <[email protected]> | 2021-10-09 19:55:44 +0200 |
commit | 330bf49492a8babf5a1fc5f8d4c88f3237a0c1f8 (patch) | |
tree | 488bf858a3a7658962f92a835192c04043b975b1 /org-roam-ui.el | |
parent | f634e215b81da6977f28d78f45d4148d786096dc (diff) |
feat(preview): image previewing
Diffstat (limited to 'org-roam-ui.el')
-rw-r--r-- | org-roam-ui.el | 3 |
1 files changed, 1 insertions, 2 deletions
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 () |