Skip to content

Commit

Permalink
Merge pull request #25 from Isra1997/master
Browse files Browse the repository at this point in the history
fix: added &hl=en to programable search engine
  • Loading branch information
paul-shuvo committed Mar 25, 2022
2 parents 13e0b22 + 843a2e0 commit 7c0273a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ class CurrencyConverter {
if(this.currencyFrom === this.currencyTo)
return new Promise((resolve, _) => {resolve(this.currencyAmount) })
else
return got(`https://www.google.co.in/search?q=${this.currencyAmount}+${this.currencyFrom}+to+${this.currencyTo}`)
return got(`https://www.google.co.in/search?q=${this.currencyAmount}+${this.currencyFrom}+to+${this.currencyTo}+&hl=en`)
.then((html) => {
// const fs = require('fs');

Expand Down

0 comments on commit 7c0273a

Please sign in to comment.