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

Method launchChrome

tests/browser/environment.js:83–102  ·  view source on GitHub ↗

* @returns {Promise }

()

Source from the content-addressed store, hash-verified

81 * @returns {Promise<Browser>}
82 */
83 async launchChrome() {
84 const extensionDir = chromeMV3ExtensionDebugDir;
85 let executablePath;
86 try {
87 executablePath = await getChromePath();
88 } catch (e) {
89 console.error(e);
90 }
91 // Explanation of these options:
92 // https://pptr.dev/guides/chrome-extensions
93 return await launch({
94 args: [
95 '--show-component-extension-options',
96 ],
97 enableExtensions: [extensionDir],
98 executablePath,
99 headless: false,
100 pipe: true,
101 });
102 }
103
104 /**
105 * @returns {Promise<Browser>}

Callers 1

launchBrowserMethod · 0.95

Calls 1

getChromePathFunction · 0.90

Tested by

no test coverage detected