mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +00:00
Rename cssFiles option to themes and add menu entry
This commit is contained in:
6
index.js
6
index.js
@ -85,9 +85,9 @@ function onClosed() {
|
||||
function loadPlugins(win) {
|
||||
injectCSS(win.webContents, path.join(__dirname, "youtube-music.css"));
|
||||
// Load user CSS
|
||||
const cssFiles = config.get("options.cssFiles");
|
||||
if (Array.isArray(cssFiles)) {
|
||||
cssFiles.forEach((cssFile) => {
|
||||
const themes = config.get("options.themes");
|
||||
if (Array.isArray(themes)) {
|
||||
themes.forEach((cssFile) => {
|
||||
fileExists(
|
||||
cssFile,
|
||||
() => {
|
||||
|
||||
Reference in New Issue
Block a user