Skip to content

Commit 254a191

Browse files
committed
Delete unnecessary DOM Commands & Added Reference Disclaimer
1 parent 80663a5 commit 254a191

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ If you choose to support our work, please contact [@vinyzu](https://discord.com/
138138

139139
Patchright is licensed [Apache 2.0](https://choosealicense.com/licenses/apache-2.0/)
140140

141+
[Some Parts](https://github.com/Kaliiiiiiiiii-Vinyzu/patchright/blob/main/patchright_driver_patch.js#L435-L448) of the Codebase are inspired by [Driverless](https://github.com/kaliiiiiiiiii/Selenium-Driverlesshttps://github.com/kaliiiiiiiiii/Selenium-Driverless).
142+
141143
---
142144

143145
## Disclaimer

patchright_driver_patch.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,11 +467,11 @@ getFrameMainFrameContextIdMethod.setBodyText(
467467

468468
// -- _context Method --
469469
const contextMethodCode = `
470-
await this._page._delegate._mainFrameSession._client._sendMayFail('DOM.enable');
470+
/* await this._page._delegate._mainFrameSession._client._sendMayFail('DOM.enable');
471471
var globalDoc = await this._page._delegate._mainFrameSession._client._sendMayFail('DOM.getFrameOwner', { frameId: this._id });
472472
if (globalDoc) {
473473
await this._page._delegate._mainFrameSession._client._sendMayFail("DOM.resolveNode", { nodeId: globalDoc.nodeId })
474-
}
474+
} */
475475
476476
// if (this.isDetached()) throw new Error('Frame was detached');
477477
try {

0 commit comments

Comments
 (0)