forked from KaKi87/deepl-scraper
Update glossary support #1
1 changed files with 2 additions and 2 deletions
4
index.js
4
index.js
|
|
@ -82,7 +82,7 @@ module.exports = {
|
|||
await page.waitForSelector('.lmt--active_translation_request');
|
||||
await page.waitForSelector('.lmt--active_translation_request', { hidden: true });
|
||||
_res.target.translation = await page.$eval(targetSentenceField, el => el.value);
|
||||
page.close().catch(() => {});
|
||||
await page.close();
|
||||
return _res;
|
||||
},
|
||||
clearGlossary: async () => {
|
||||
|
|
@ -132,7 +132,7 @@ module.exports = {
|
|||
await page.type(targetGlossaryInput, glossary[word]);
|
||||
await page.click(glossaryAddButton);
|
||||
}
|
||||
page.close().catch(() => {});
|
||||
await page.close();
|
||||
},
|
||||
quit: async () => {
|
||||
if(browser)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue