Comments (5)
I have push new commit emacs-eaf/emacs-application-framework@c3aa71b
After update to newest version of EAF.
You can try:
(eaf-call-async "eval_js_code" eaf--buffer-id "alert('hello')")
or
(eaf-call-sync "execute_js_code" eaf--buffer-id "1 + 1;")
for your purpose.
from eaf-browser.
Perfect, works well. Thank you!
from eaf-browser.
One thing I noticed here is that the function doc is incorrect because a result is returned.
And a follow-up question to the code above. It seems that the code would allow to pass the evaluated result back into Emacs Lisp but the code below (regardless of the string) always returns nil
for me.
Does it work for you?
(eaf-call-sync "execute_js_code" eaf--buffer-id "1 + 1;")
from eaf-browser.
One thing I noticed here is that the function doc is incorrect because a result is returned.
And a follow-up question to the code above. It seems that the code would allow to pass the evaluated result back into Emacs Lisp but the code below (regardless of the string) always returns
nil
for me.Does it work for you?
(eaf-call-sync "execute_js_code" eaf--buffer-id "1 + 1;")
Sorry, typo, this issue fixed by patch emacs-eaf/emacs-application-framework@62c5477
Please upgrade again.
from eaf-browser.
Works now!
from eaf-browser.
Related Issues (20)
- How to modify keybind in eaf-browser-caret-mode-keybinding
- 已经安装 youtube-dl,还是出现提示 Please install youtube-dl to use this feature. HOT 11
- multi-session browser
- adblock
- braveblock does not support apple m1/m2 HOT 2
- eaf-browser adblock: easylist.txt UnicodeDecodeError HOT 1
- 看不了优酷视频 HOT 7
- overflow HOT 6
- 无法登录google HOT 1
- [wishlist] save current web page to a file ? HOT 2
- 播放B站视频时提示“您当前的浏览器不支持HTML5播放器 请更换浏览器再试试哦~” HOT 6
- [leetcode.cn] Ooops, page crashed HOT 1
- 用 J/K 翻页的时候会触发 zoom HOT 2
- 建议open_link的时候能根据历史访问记录模糊搜索 HOT 1
- 没有记录网页的登录状态 HOT 1
- EAF Browser Crash on macos HOT 3
- eaf-browser bilibili HOT 1
- Adding support for firefox/chrome addons HOT 1
- 部分正则表达式在 python 3.12 中出现错误 HOT 1
- bookmark doesn't work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eaf-browser.