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

Method launchEdge

tests/browser/environment.js:107–124  ·  view source on GitHub ↗

* @returns {Promise }

()

Source from the content-addressed store, hash-verified

105 * @returns {Promise<Browser>}
106 */
107 async launchEdge() {
108 const extensionDir = chromePlusExtensionDebugDir;
109 let executablePath;
110 try {
111 executablePath = await getEdgePath();
112 } catch (e) {
113 console.error(e);
114 }
115 return await launch({
116 args: [
117 '--show-component-extension-options',
118 ],
119 enableExtensions: [extensionDir],
120 executablePath,
121 headless: false,
122 pipe: true,
123 });
124 }
125
126 /**
127 * @returns {Promise<Browser>}

Callers 1

launchBrowserMethod · 0.95

Calls 1

getEdgePathFunction · 0.90

Tested by

no test coverage detected