mirror of
https://github.com/osnr/TabFS.git
synced 2024-04-25 10:50:30 +02:00
extension: source.html -> body.html
This commit is contained in:
parent
922e2bb6a3
commit
8f33a2feab
|
@ -263,7 +263,7 @@ router["/tabs/by-id"] = {
|
|||
router["/tabs/by-id/*/url.txt"] = withTab(tab => tab.url + "\n", buf => ({ url: buf }));
|
||||
router["/tabs/by-id/*/title.txt"] = withTab(tab => tab.title + "\n");
|
||||
router["/tabs/by-id/*/text.txt"] = fromScript(`document.body.innerText`);
|
||||
router["/tabs/by-id/*/source.html"] = fromScript(`document.body.innerHTML`);
|
||||
router["/tabs/by-id/*/body.html"] = fromScript(`document.body.innerHTML`);
|
||||
|
||||
// echo true > mnt/tabs/by-id/1644/active
|
||||
// cat mnt/tabs/by-id/1644/active
|
||||
|
|
Loading…
Reference in a new issue