Browse Source

Fix #199

* indium-chrome.el (indium-chrome--command): Reuse the Chrome profile directory
  between sessions.
drone
Nicolas Petton 3 years ago
parent
commit
cf759ec06d
No known key found for this signature in database GPG Key ID: E8BCD7866AFCF978
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      indium-chrome.el

+ 4
- 1
indium-chrome.el View File

@ -60,6 +60,9 @@
"When non-nil, each invocation of the browser uses a new temporary profile."
:type '(boolean))
(defvar indium-chrome-data-dir (make-temp-file nil t)
"Chrome profile directory used by Indium.")
(defun indium-launch-chrome (conf)
"Start chrome/chromium with remote debugging enabled based on CONF settings."
(let-alist conf
@ -76,7 +79,7 @@
(list (indium-chrome--find-executable)
(format "--remote-debugging-port=%s" port)
(if indium-chrome-use-temporary-profile
(format "--user-data-dir=%s" (make-temp-file nil t))
(format "--user-data-dir=%s" indium-chrome-data-dir)
"")
url))


Loading…
Cancel
Save