(browser: BrowserInfo, platform: BrowserPlatform)
| 333 | } |
| 334 | |
| 335 | function getDataDirForPlatform(browser: BrowserInfo, platform: BrowserPlatform): string | null { |
| 336 | if (platform === 'darwin') return browser.dataDir; |
| 337 | if (platform === 'linux') return browser.linuxDataDir || null; |
| 338 | return browser.windowsDataDir || null; |
| 339 | } |
| 340 | |
| 341 | function getBaseDir(platform: BrowserPlatform): string { |
| 342 | if (platform === 'darwin') return path.join(os.homedir(), 'Library', 'Application Support'); |
no outgoing calls
no test coverage detected