mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-31 17:31:27 +00:00
fix var names
This commit is contained in:
parent
8b7bb67354
commit
b7781f0e40
2 changed files with 4 additions and 2 deletions
|
@ -85,6 +85,7 @@ class SettingsPage extends React.PureComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
onThemeChange(event) {
|
onThemeChange(event) {
|
||||||
|
// Todo: Add better way to handle this
|
||||||
const value = event.target.value;
|
const value = event.target.value;
|
||||||
const link = document.getElementById("theme");
|
const link = document.getElementById("theme");
|
||||||
link.href = `./themes/${value}.css`;
|
link.href = `./themes/${value}.css`;
|
||||||
|
@ -272,8 +273,8 @@ class SettingsPage extends React.PureComponent {
|
||||||
defaultValue={lbry.getClientSetting("theme")}
|
defaultValue={lbry.getClientSetting("theme")}
|
||||||
className="form-field__input--inline"
|
className="form-field__input--inline"
|
||||||
>
|
>
|
||||||
{themes.map((i, k) =>
|
{themes.map((name, index) =>
|
||||||
<option key={k} value={i}>{__(`${i} theme`)}</option>
|
<option key={index} value={name}>{__(`${name} theme`)}</option>
|
||||||
)}
|
)}
|
||||||
</FormField>
|
</FormField>
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// Todo: Add a better way to do this
|
||||||
const { readdirSync } = require("fs");
|
const { readdirSync } = require("fs");
|
||||||
const { extname } = require("path");
|
const { extname } = require("path");
|
||||||
const { remote } = require("electron");
|
const { remote } = require("electron");
|
||||||
|
|
Loading…
Add table
Reference in a new issue