Skip to content

Commit

Permalink
Merge pull request #87 from SensCritique/fix/add-link-rating
Browse files Browse the repository at this point in the history
hotfix(link): au clique sur la note on redirige sur la page SC du produit correspondant
  • Loading branch information
audreylamy authored Dec 8, 2022
2 parents e94c5ba + 3277212 commit 5dbbbf2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/dom/Rating.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export class Rating {
a.setAttribute('target', '_blank')
a.style.display = 'block'
a.style.height = '100%'
a.style.width = '100%'

const divLogo = document.createElement('div')
divLogo.style.paddingLeft = '10px'
Expand Down
2 changes: 1 addition & 1 deletion src/http/SensCritique.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default class SensCritique implements Client {
(type === VideoType.MOVIE && result.product.universe === 1)) && result.product.title === search) {
videoInfo = {
name: result.product.title,
redirect: `${this.baseUrl}${result.product.url}/critiques`,
redirect: `${this.baseUrl}${result.product.url}`,
url: `${this.baseUrl}${result.product.url}`,
id: result.product.universe,
type: type,
Expand Down

0 comments on commit 5dbbbf2

Please sign in to comment.