Created
January 7, 2018 05:02
-
-
Save jmercouris/6d6983aae8d089861805defe5b055ad8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defparameter promise (promise)) | |
(defun callback-stub () | |
(fulfill promise)) | |
(defun web-view-execute (view script) | |
(execute-function-in-new-thread | |
(let ((np (cffi:null-pointer))) | |
(webkit2:webkit-web-view-run-javascript view script np (cffi:callback callback-stub) np))) | |
(force promise)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment