added web_response
This commit is contained in:
@@ -18,6 +18,9 @@ fplay.event.on("browser_connect", async function(ws){
|
||||
const blanktab = await fplay.close_all_tabs(ws);
|
||||
await fplay.delete_all_containers(ws);
|
||||
|
||||
// only return responses for these data sources
|
||||
fplay.web_response_whitelist(ws, ["main_frame", "xmlhttprequest"]);
|
||||
|
||||
// create container
|
||||
const container = await fplay.container_create(ws);
|
||||
console.log(container);
|
||||
@@ -47,4 +50,14 @@ fplay.event.on("browser_connect", async function(ws){
|
||||
console.log(result);
|
||||
});
|
||||
|
||||
fplay.event.on("web_request", async function(request){
|
||||
|
||||
console.log(request);
|
||||
});
|
||||
|
||||
fplay.event.on("web_response", async function(request){
|
||||
|
||||
|
||||
});
|
||||
|
||||
fplay.init(port, password, timeout);
|
||||
|
||||
Reference in New Issue
Block a user