correction of writing cookies
This commit is contained in:
@@ -385,7 +385,7 @@ class CommandorPage {
|
||||
// save cookies
|
||||
try {
|
||||
let cookies = await this.context.cookies()
|
||||
await fs.writeFileSync(this.contact.mail + '.txt', cookies.join('\n'));
|
||||
await require("fs").writeFileSync(this.contact.mail + '.txt', cookies.join('\n'));
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user