We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b28b9cd commit 3be362fCopy full SHA for 3be362f
src/browsers.ts
@@ -5,13 +5,8 @@ import { promisify } from 'util';
5
6
export { BrowserInstance };
7
8
-let launcher: Launch | undefined;
9
async function getLauncher(configPath: string) {
10
- if (!launcher) {
11
- launcher = await promisify(getBrowserLauncher)(path.join(configPath, 'browsers.json'));
12
- }
13
-
14
- return launcher;
+ return await promisify(getBrowserLauncher)(path.join(configPath, 'browsers.json'));
15
}
16
17
export const getAvailableBrowsers = async (configPath: string) => {
0 commit comments