Skip to content

Commit

Permalink
Update presence.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
PiggyPlex committed Apr 24, 2021
1 parent 906a181 commit a22fee9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion websites/R/Reverso/presence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ presence.on('UpdateData', () => {
if (["tasrif.reverso.net", "konjugator.reverso.net", "conjugator.reverso.net", "conjugador.reverso.net", "conjugueur.reverso.net", "pealim.reverso.net", "coniugazione.reverso.net", "doushi.reverso.net", "conjugacao.reverso.net", "glagol.reverso.net", "tasrif.reverso.net", "konjugator.reverso.net", "conjugator.reverso.net", "conjugador.reverso.net", "conjugueur.reverso.net", "pealim.reverso.net", "coniugazione.reverso.net", "doushi.reverso.net", "conjugacao.reverso.net", "glagol.reverso.net"].includes(domain)) {
presenceData.details = 'Conjugator';
presenceData.state = document.querySelector('.content-head') ? (<HTMLElement>document.querySelector('.content-head')).innerText : document.querySelector('title').innerText.split('|')[0];
if (['conjugation-english.html', '活用-英語.html', 'coniugazione-inglese.html', 'conjugacao-ingles.html', ].includes(pagename)) presenceData.state = 'Homepage';
if (['conjugation-english.html', '活用-英語.html', 'coniugazione-inglese.html', 'conjugacao-ingles.html'].includes(pagename)) presenceData.state = 'Homepage';
if (pagename.match(/conjugation-.+-verb-.+\.html/g)) {
presenceData.details = `Conjugator (${(<HTMLLabelElement>document.querySelector('#content-menu > div.tableForm.clearfix > div > div.select-wrap > a > label'))?.innerText || 'English'})`;
presenceData.state = `Searching "${(<HTMLInputElement>document.getElementById('txtVerb')).value}"`;
Expand Down

0 comments on commit a22fee9

Please sign in to comment.