Skip to content

Commit

Permalink
1.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
BuildTools committed Jul 2, 2023
1 parent c01b384 commit 5cfe7c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions script/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ fetch(app.getPath('userData') + '/config.json')
fetch(`../language/${data.config.language}.json`)
.then((res) => res.json())
.then(data => {
document.getElementById('welcome-back').innerHTML = data.translations.welcomeBack + os.hostname() + "!";
document.getElementById('welcome-back').innerHTML = data.translations.welcomeBack + require("os").userInfo().username + "!";
document.getElementById('home-txt').innerHTML = data.translations.home
document.getElementById('library-txt').innerHTML = data.translations.library
document.getElementById('store-txt').innerHTML = data.translations.store
Expand Down Expand Up @@ -624,7 +624,7 @@ function recommendGames() {
startBtn.innerHTML = 'Play';
startBtn.onclick = function () {
buttonClick.play();
if (items.link !== '') spw(items.name, items.banner, items.info, items.developer, items.feed, items.link)
if (items.preview !== '') spw(items.name, items.banner, items.info, items.developer, items.feed, items.preview)
else notifDisplay('Error 407: Missing link argument in JSON file', 'Failed to launch!')
}
recommendDisplay.appendChild(startBtn)
Expand All @@ -644,7 +644,7 @@ function recommendGames() {
startBtn.innerHTML = 'Play';
startBtn.onclick = function () {
buttonClick.play();
if (items.link !== '') spw(items.name, items.banner, items.info, items.developer, items.feed, items.link)
if (items.preview !== '') spw(items.name, items.banner, items.info, items.developer, items.feed, items.preview)
else notifDisplay('Error 407: Missing link argument in JSON file', 'Failed to launch!')
}
recommendDisplay.appendChild(startBtn)
Expand Down
2 changes: 1 addition & 1 deletion views/css/default.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:root {
--main-color: #1d1d1ddd;
--main-color: #1d1d1d;
--main-hover-color: #2e2e2e;
--main-selected-disabled-color: #3f3f3f;
--main-text: #fff;
Expand Down

0 comments on commit 5cfe7c0

Please sign in to comment.