fix resources/ suffix misuse bug, tweak README

This commit is contained in:
Omar Rizwan 2021-03-22 22:49:07 -07:00
parent d539660c93
commit e1f9c5986a
2 changed files with 2 additions and 3 deletions

View File

@ -3,5 +3,4 @@
See <https://omar.website/tabfs/>. See <https://omar.website/tabfs/>.
(**update**: You can now **[sponsor further development of (**update**: You can now **[sponsor further development of
TabFS](https://github.com/sponsors/osnr)** and help to turn it from an TabFS](https://github.com/sponsors/osnr)**!)
experiment into something really reliable and useful!)

View File

@ -364,7 +364,7 @@ Router["/tabs/by-id/#TAB_ID/control"] = {
return { entries: [".", "..", ...frameTree.resources.map(r => sanitize(String(r.url)))] }; return { entries: [".", "..", ...frameTree.resources.map(r => sanitize(String(r.url)))] };
} }
}; };
Router["/tabs/by-id/#TAB_ID/debugger/resources/:SUFFIX"] = defineFile(async ({path, tabId}) => { Router["/tabs/by-id/#TAB_ID/debugger/resources/:SUFFIX"] = defineFile(async ({path, tabId, suffix}) => {
await TabManager.debugTab(tabId); await TabManager.enableDomainForTab(tabId, "Page"); await TabManager.debugTab(tabId); await TabManager.enableDomainForTab(tabId, "Page");
const {frameTree} = await sendDebuggerCommand(tabId, "Page.getResourceTree", {}); const {frameTree} = await sendDebuggerCommand(tabId, "Page.getResourceTree", {});