Skip to content

Commit

Permalink
ws
Browse files Browse the repository at this point in the history
  • Loading branch information
AeroNotix committed Feb 14, 2015
1 parent b44ac28 commit 711dda0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions browser.lisp
Expand Up @@ -244,19 +244,19 @@
(defcommand eval-in-page-cl (browser &optional input)
"Evaluates parenscript expressions in the context of the current browser."
(let ((wv (webview browser))
(np (cffi:null-pointer)))
(np (cffi:null-pointer)))
(unless input
(with-browser-input browser expr
(setf input (read-from-string expr))))
(setf input (read-from-string expr))))
(webkit2:webkit-web-view-run-javascript wv (eval `(ps:ps ,input)) np np np)))

(defcommand eval-in-page-js (browser &optional input)
"Evaluates Javascript in the context of the current browser."
(let ((wv (webview browser))
(np (cffi:null-pointer)))
(np (cffi:null-pointer)))
(unless input
(with-browser-input browser expr
(setf input expr)))
(setf input expr)))
(webkit2:webkit-web-view-run-javascript wv input np np np)))

(defcommand i-search (browser) "Executes a search on the current webview."
Expand Down

0 comments on commit 711dda0

Please sign in to comment.