()
| 477 | } |
| 478 | |
| 479 | getCookiesStatus() { |
| 480 | const configDir = path.dirname(this.configPath); |
| 481 | const customPath = path.join(configDir, 'cookies.user.txt'); |
| 482 | const customExists = fs.existsSync(customPath); |
| 483 | |
| 484 | return { |
| 485 | cookiesEnabled: this.config.cookiesEnabled, |
| 486 | customCookiesUploaded: this.config.customCookiesUploaded, |
| 487 | customFileExists: customExists |
| 488 | }; |
| 489 | } |
| 490 | |
| 491 | writeCustomCookiesFile(buffer) { |
| 492 | const configDir = path.dirname(this.configPath); |
no outgoing calls
no test coverage detected