()
| 508 | } |
| 509 | |
| 510 | deleteCustomCookiesFile() { |
| 511 | const configDir = path.dirname(this.configPath); |
| 512 | const customPath = path.join(configDir, 'cookies.user.txt'); |
| 513 | |
| 514 | if (fs.existsSync(customPath)) { |
| 515 | fs.unlinkSync(customPath); |
| 516 | } |
| 517 | |
| 518 | // Update config |
| 519 | this.config.customCookiesUploaded = false; |
| 520 | // Keep cookiesEnabled state unchanged |
| 521 | this.saveConfig(); |
| 522 | this.emit('change'); |
| 523 | |
| 524 | return true; |
| 525 | } |
| 526 | |
| 527 | async getStorageStatus() { |
| 528 | const { execFile } = require('child_process'); |
no test coverage detected