mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-12-14 22:54:32 +08:00
修复浏览器控制网络被阻塞的BUG
This commit is contained in:
@@ -9,12 +9,11 @@ const initCDP = async (targetId) => {
|
||||
port,
|
||||
});
|
||||
|
||||
const { Page, Runtime, Target, Network, Emulation, DOM, Fetch } = client;
|
||||
const { Page, Runtime, Target, Network, Emulation, DOM } = client;
|
||||
await Promise.all([
|
||||
Page.enable(),
|
||||
Runtime.enable(),
|
||||
DOM.enable(),
|
||||
Fetch.enable(),
|
||||
]);
|
||||
|
||||
return {
|
||||
@@ -25,7 +24,6 @@ const initCDP = async (targetId) => {
|
||||
Network,
|
||||
Emulation,
|
||||
DOM,
|
||||
Fetch,
|
||||
};
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
|
||||
Reference in New Issue
Block a user