|
|
@@ -143,6 +143,12 @@ and a Lisp function to call it."
|
|
|
(script (mapconcat #'cdr (cdr namespace) "\n")))
|
|
|
(xwwp-html-inject-script xwidget (format "--xwwp-%s" (symbol-name ns-name)) script)))
|
|
|
|
|
|
+(defun xwwp-js-execute (xwidget ns-name)
|
|
|
+ "Inject the functions defined in NS-NAME into XWIDGET session."
|
|
|
+ (let* ((namespace (assoc ns-name xwwp-js-scripts))
|
|
|
+ (script (mapconcat #'cdr (cdr namespace) "\n")))
|
|
|
+ (xwidget-webkit-execute-script xwidget script)))
|
|
|
+
|
|
|
;;;###autoload
|
|
|
(defun xwwp-browse-url-other-window (url &optional new-session)
|
|
|
"Ask xwidget-webkit to browse URL.
|