Open ComfyUI in default browser

This commit is contained in:
Jeremy Dormitzer 2024-07-25 21:31:24 -04:00
parent 8f6b50d84e
commit 38db89e9be

View File

@ -125,7 +125,8 @@
(when-let ((match (s-match "To see the GUI go to: \\(.*\\)" string))) (when-let ((match (s-match "To see the GUI go to: \\(.*\\)" string)))
(with-current-buffer (process-buffer proc) (with-current-buffer (process-buffer proc)
(setq comfy-ui--url (nth 1 match)) (setq comfy-ui--url (nth 1 match))
(browse-url comfy-ui--url))) (let ((browse-url-browser-function #'browse-url-default-browser))
(browse-url comfy-ui--url))))
(when (buffer-live-p (process-buffer proc)) (when (buffer-live-p (process-buffer proc))
(with-current-buffer (process-buffer proc) (with-current-buffer (process-buffer proc)
(let ((moving (= (point) (process-mark proc)))) (let ((moving (= (point) (process-mark proc))))