(callback: (cb?) => void | Promise<void>)
| 92 | // If the browser loads another page before current page is ready, the tasks |
| 93 | // will be cancelled. |
| 94 | pushTask(callback: (cb?) => void | Promise<void>) { |
| 95 | this.#queue.push(callback); |
| 96 | if (this.isDomReady) |
| 97 | this.#queue.start(); |
| 98 | } |
| 99 | |
| 100 | // Wrapper of pushTask and executeJavaScript. |
| 101 | pushJavaScript(js: string) { |
no outgoing calls
no test coverage detected