launcher: run frameLoadCallback on eval check
This commit is contained in:
parent
4b63c83d07
commit
c8feb69714
@ -64,6 +64,7 @@ export default async (CDP, proc, injectionType = 'browser', { browserName } = {
|
||||
|
||||
evalInWindow('document.readyState').then(readyState => { // check if already loaded, if so trigger page load promise
|
||||
if (readyState === 'complete' || readyState === 'ready') pageLoadCallback();
|
||||
frameLoadCallback();
|
||||
});
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user