Skip to content

Commit

Permalink
added verion display
Browse files Browse the repository at this point in the history
  • Loading branch information
thearturca committed Jan 19, 2021
1 parent d219061 commit 0727653
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "iq-bot",
"productName": "200iqbot",
"version": "0.0.4",
"version": "0.0.5",
"description": "Простой бот для Twitch.tv",
"main": "src/main.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ <h2>IQ-тест</h2>

theme = args.theme;
UI.toggleTheme(theme);

document.querySelector('header').querySelector('.logo'). innerHTML += `v${ args.ver}`
document.querySelector('#commandsState').checked = args.commandsState;
document.querySelector('#iqState').checked = args.iqState;
document.querySelector('header').querySelector('#username').innerHTML = username;
Expand Down
3 changes: 2 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,8 @@ app.on('ready', () => {
result = {username: user.username,
theme: user.theme,
commandsState: bot.config().commandsState,
iqState: bot.config().iqState
iqState: bot.config().iqState,
ver: app.getVersion()
};
return result;
});
Expand Down

0 comments on commit 0727653

Please sign in to comment.