Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

Use api/versions.json to get LoL version instead of realm file version #414

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/championify.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ function saveSettings() {
*/
function getRiotVer() {
if (store.get('importing')) cl(`${T.t('lol_version')}`);
return request({url: 'https://ddragon.leagueoflegends.com/realms/na.json', json: true})
.then(R.prop('v'))
return request({url: 'https://ddragon.leagueoflegends.com/api/versions.json', json: true})
.then(R.head)
.tap(version => store.set('riot_ver', version))
.catch(err => {
throw new ChampionifyErrors.RequestError('Can\'t get Riot Version').causedBy(err);
Expand Down