MCPcopy Index your code
hub / github.com/darkreader/darkreader / launchBrowser

Method launchBrowser

tests/browser/environment.js:66–78  ·  view source on GitHub ↗

* @returns {Promise }

()

Source from the content-addressed store, hash-verified

64 * @returns {Promise<Browser>}
65 */
66 async launchBrowser() {
67 let browser;
68 if (this.global.product === 'edge') {
69 browser = await this.launchEdge();
70 } else if (this.global.product === 'chrome-mv3') {
71 browser = await this.launchChrome();
72 } else if (this.global.product === 'firefox') {
73 browser = await this.launchFirefox();
74 }
75 // Wait for the extension to start
76 await this.waitForStartup();
77 return browser;
78 }
79
80 /**
81 * @returns {Promise<Browser>}

Callers 1

setupMethod · 0.95

Calls 4

launchEdgeMethod · 0.95
launchChromeMethod · 0.95
launchFirefoxMethod · 0.95
waitForStartupMethod · 0.95

Tested by

no test coverage detected