fix var names

This commit is contained in:
btzr-io 2017-08-06 12:17:16 -06:00
parent 8b7bb67354
commit b7781f0e40
2 changed files with 4 additions and 2 deletions

View file

@ -85,6 +85,7 @@ class SettingsPage extends React.PureComponent {
}
onThemeChange(event) {
// Todo: Add better way to handle this
const value = event.target.value;
const link = document.getElementById("theme");
link.href = `./themes/${value}.css`;
@ -272,8 +273,8 @@ class SettingsPage extends React.PureComponent {
defaultValue={lbry.getClientSetting("theme")}
className="form-field__input--inline"
>
{themes.map((i, k) =>
<option key={k} value={i}>{__(`${i} theme`)}</option>
{themes.map((name, index) =>
<option key={index} value={name}>{__(`${name} theme`)}</option>
)}
</FormField>

View file

@ -1,3 +1,4 @@
// Todo: Add a better way to do this
const { readdirSync } = require("fs");
const { extname } = require("path");
const { remote } = require("electron");