diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-07-27 20:21:07 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-07-27 20:27:42 +0530 |
| commit | 8604765c3660dbea9cae6996d5750bfb985e6751 (patch) | |
| tree | 3a90f68dd07f8eb6a9c92d1f322162ac3b345383 /TODO.org | |
| parent | c95ee83c24b79e64a91a6d3a55addcb6e7ebd11b (diff) | |
| download | null-browser-8604765c3660dbea9cae6996d5750bfb985e6751.tar.gz null-browser-8604765c3660dbea9cae6996d5750bfb985e6751.zip | |
Add web.view.run_js + change rpc js api
Diffstat (limited to 'TODO.org')
| -rw-r--r-- | TODO.org | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3,7 +3,7 @@ - [X] web.schedule - [X] Create view with html (web.view.set_html()) - [X] Expose JS <-> lua in page (web.view.expose()) -- [-] Tests for api +- [X] Tests for api - [ ] Run JS in page (web.view.eval_js()) - [ ] web.decorations.*.set_size() - [ ] f-key navigation @@ -117,7 +117,7 @@ web.event.add_listener({ 'TabOpen', 'TabClose' }, { local views = web.view.list() for index, view in ipairs(web.view.list()) do local text = index..': '..view.title..' ('..view.url..')' - local tab = '<span onclick="__nullbrowser__.openTab('..view.id..')">' .. text .. '</span>') + local tab = '<span onclick="_nullbrowser.rpc.openTab('..view.id..')">' .. text .. '</span>') tabs_html = tabs_html .. tab end web.view.set_html(tabs_html, { view = web.decorations.top.view() }) |
