Skip to content

Commit

Permalink
release: v1.15.2
Browse files Browse the repository at this point in the history
  • Loading branch information
surunzi committed Oct 17, 2024
1 parent d4cce0b commit e716f66
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 24 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.15.2 (17 Oct 2024)

* fix: ws dead loop

## 1.15.1 (16 Oct 2024)

* fix: cache network requests before enable [#53](https://github.com/liriliri/chii/issues/53)
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chii",
"version": "1.15.1",
"version": "1.15.2",
"description": "Chrome devtools framework",
"main": "./server/index.js",
"bin": {
Expand Down Expand Up @@ -42,7 +42,7 @@
"devDependencies": {
"@eslint/js": "^9.5.0",
"@types/eslint__js": "^8.42.3",
"chobitsu": "^1.8.2",
"chobitsu": "^1.8.3",
"css-loader": "^6.7.2",
"es-check": "^6.2.1",
"eslint": "^8.57.0",
Expand Down
44 changes: 22 additions & 22 deletions src/target/DevtoolsFrame.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,30 +117,30 @@ export default class DevtoolsFrame {
resourceTreeModel
);
}
});
sendToDevtools({
method: 'Page.frameNavigated',
params: {
frame: {
id: '1',
mimeType: 'text/html',
securityOrigin: location.origin,
url: location.href,
sendToDevtools({
method: 'Page.frameNavigated',
params: {
frame: {
id: '1',
mimeType: 'text/html',
securityOrigin: location.origin,
url: location.href,
},
type: 'Navigation',
},
type: 'Navigation',
},
});
sendToChobitsu({ method: 'Network.enable' });
sendToDevtools({ method: 'Runtime.executionContextsCleared' });
sendToChobitsu({ method: 'Runtime.enable' });
sendToChobitsu({ method: 'Debugger.enable' });
sendToChobitsu({ method: 'DOMStorage.enable' });
sendToChobitsu({ method: 'DOM.enable' });
sendToChobitsu({ method: 'CSS.enable' });
sendToChobitsu({ method: 'Overlay.enable' });
sendToDevtools({ method: 'DOM.documentUpdated' });
sendToChobitsu({ method: 'Page.enable' });
sendToDevtools({ method: 'Page.loadEventFired' });
});
sendToChobitsu({ method: 'Network.enable' });
sendToDevtools({ method: 'Runtime.executionContextsCleared' });
sendToChobitsu({ method: 'Runtime.enable' });
sendToChobitsu({ method: 'Debugger.enable' });
sendToChobitsu({ method: 'DOMStorage.enable' });
sendToChobitsu({ method: 'DOM.enable' });
sendToChobitsu({ method: 'CSS.enable' });
sendToChobitsu({ method: 'Overlay.enable' });
sendToDevtools({ method: 'DOM.documentUpdated' });
sendToChobitsu({ method: 'Page.enable' });
sendToDevtools({ method: 'Page.loadEventFired' });
});
} else {
frame.src = `${devtoolsUrl}#?embedded=${encodeURIComponent(hostOrigin)}`;
Expand Down
1 change: 1 addition & 0 deletions src/target/connectRtc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export default async function () {
title: (window as any).ChiiTitle || document.title || 'Unknown',
favicon: getFavicon(),
rtc: true,
'__chobitsu-hide__': true,
})}`
);

Expand Down
1 change: 1 addition & 0 deletions src/target/connectServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export default function () {
url: location.href,
title: (window as any).ChiiTitle || document.title,
favicon: getFavicon(),
'__chobitsu-hide__': true,
})}`
);

Expand Down

0 comments on commit e716f66

Please sign in to comment.