Skip to content

Commit

Permalink
Update profile links
Browse files Browse the repository at this point in the history
  • Loading branch information
Derpthemeus committed Nov 24, 2019
1 parent a7c7069 commit 89c632b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ts/routes/summoner.ts
Expand Up @@ -105,7 +105,8 @@ export async function renderSummoner(req: express.Request, res: express.Response
icon: summoner.profileIconId,
name: summoner.name,
id: summoner.id,
region: region.id
region: region.id,
platform: region.platformId
},
champions: champions,
totals: {
Expand Down
3 changes: 2 additions & 1 deletion views/summoner.handlebars
Expand Up @@ -23,7 +23,8 @@
</h1>
<div id="profileLinks">
<a class="profileLink" href="https://{{summoner.region}}.op.gg/summoner/userName={{encodeURI summoner.name}}">op.gg</a>
<a class="profileLink" href="https://legends.ai/{{lowercase summoner.region}}/summoner/{{encodeURI (lowercase summoner.name)}}/">Legends.ai</a>
<a class="profileLink" href="https://www.leagueofgraphs.com/summoner/{{lowercase summoner.region}}/{{encodeURI summoner.name}}">League of Graphs</a>
<a class="profileLink" href="https://u.gg/lol/profile/{{lowercase summoner.platform}}/{{encodeURI (lowercase summoner.name)}}/overview">u.gg</a>
</div>
<div>Information will only update once every 10 minutes.</div>
</div>
Expand Down

0 comments on commit 89c632b

Please sign in to comment.