summaryrefslogtreecommitdiff
path: root/org-roam-ui.el
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-07-23 15:20:02 +0200
committerThomas F. K. Jorna <[email protected]>2021-07-23 15:20:02 +0200
commit7aa007f158a52b41494049a1202938fc97813ec1 (patch)
treeb6d5ee927ee9cfb4aa2bcf4ad8949368d846a923 /org-roam-ui.el
parentcf5ed86be6ce54e6af697fb0a929c4dc8a40f193 (diff)
added theme tracking
Diffstat (limited to 'org-roam-ui.el')
-rw-r--r--org-roam-ui.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/org-roam-ui.el b/org-roam-ui.el
index 9988899..f0452a6 100644
--- a/org-roam-ui.el
+++ b/org-roam-ui.el
@@ -94,7 +94,7 @@ ROWS is the sql result, while COLUMN-NAMES is the columns to use."
(push (cons (pop column-names) (pop rows)) res))
res))
-(defservlet* theme application/json ()
+(defservlet* theme text/stream ()
(progn
(when (boundp 'doom-themes--colors)
(let*
@@ -102,7 +102,7 @@ ROWS is the sql result, while COLUMN-NAMES is the columns to use."
(progn
(dolist (color colors) (push (cons (car color) (car (cdr color))) ui-theme))
(insert (json-encode ui-theme)))))
- (httpd-send-header t "text/plain" 200 :Access-Control-Allow-Origin "*")))
+ (httpd-send-header t "text/event-stream" 200 :Access-Control-Allow-Origin "*")))
(defservlet* id/:id text/html ()