MCPcopy Index your code
hub / github.com/MALSync/MALSync / getBrowser

Function getBrowser

test/headless/test.js:39–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37if (process.env.CI && !changedFiles.length) mode.quiet = true;
38
39async function getBrowser() {
40 if (browser) return browser;
41
42 const tempBrowser = await puppeteer.launch({ headless: headless ? 'new' : false, args: ['--disable-web-security'] });
43 browser = tempBrowser;
44
45 return tempBrowser;
46}
47
48async function closeBrowser() {
49 if (browser) await browser.close();

Callers 2

loopElFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected