index: fix onLoad using old API name
This commit is contained in:
parent
8d4dd9aea1
commit
a3479988be
@ -187,7 +187,7 @@ export const open = async (url, { windowSize, onLoad, forceBrowser } = {}) => {
|
|||||||
(${onLoad.toString()})();
|
(${onLoad.toString()})();
|
||||||
})();`;
|
})();`;
|
||||||
|
|
||||||
Browser.window.eval(toRun);
|
Browser.page.eval(toRun);
|
||||||
|
|
||||||
await Browser.cdp.send(`Page.enable`);
|
await Browser.cdp.send(`Page.enable`);
|
||||||
await Browser.cdp.send(`Page.addScriptToEvaluateOnNewDocument`, {
|
await Browser.cdp.send(`Page.addScriptToEvaluateOnNewDocument`, {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user