mirror of
https://github.com/osnr/TabFS.git
synced 2024-04-27 11:41:54 +02:00
fix resources/ suffix misuse bug, tweak README
This commit is contained in:
parent
d539660c93
commit
e1f9c5986a
|
@ -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!)
|
|
||||||
|
|
|
@ -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", {});
|
||||||
|
|
Loading…
Reference in a new issue