send version instead of full title
This commit is contained in:
parent
6d5e28a963
commit
e1a6388887
1 changed files with 2 additions and 3 deletions
|
@ -9,7 +9,6 @@ let viewCounter = 0;
|
||||||
let files = [];
|
let files = [];
|
||||||
let day;
|
let day;
|
||||||
let month;
|
let month;
|
||||||
let title = `le epic downloader v${version}`;
|
|
||||||
let announcementArray;
|
let announcementArray;
|
||||||
let announcement
|
let announcement
|
||||||
|
|
||||||
|
@ -40,7 +39,7 @@ class DownloadController {
|
||||||
day = today.getDay();
|
day = today.getDay();
|
||||||
month = today.getMonth();
|
month = today.getMonth();
|
||||||
// If legacy link return
|
// If legacy link return
|
||||||
if (request.url() == '/legacy') return view.render('legacy', { title: title, viewCounter: viewCounter, day: day, month: month, announcement: announcement});
|
if (request.url() == '/legacy') return view.render('legacy', { version: version, viewCounter: viewCounter, day: day, month: month, announcement: announcement});
|
||||||
|
|
||||||
files = [];
|
files = [];
|
||||||
let file = [];
|
let file = [];
|
||||||
|
@ -74,7 +73,7 @@ class DownloadController {
|
||||||
files.push({ name: f.split('.').slice(0, -1).join('.'), size: formatBytes(fs.statSync(`./public/uploads/${f}`).size), location: `uploads/${f}`, ext: f.split('.').pop(), img: `/asset/music.png` });
|
files.push({ name: f.split('.').slice(0, -1).join('.'), size: formatBytes(fs.statSync(`./public/uploads/${f}`).size), location: `uploads/${f}`, ext: f.split('.').pop(), img: `/asset/music.png` });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return view.render('index', { title: title, viewCounter: viewCounter, file: files, day: day, month: month, announcement: announcement});
|
return view.render('index', { version: version, viewCounter: viewCounter, file: files, day: day, month: month, announcement: announcement});
|
||||||
}
|
}
|
||||||
|
|
||||||
async download({ view, request, response }) {
|
async download({ view, request, response }) {
|
||||||
|
|
Loading…
Reference in a new issue