mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
12 lines
359 B
JavaScript
12 lines
359 B
JavaScript
const path = require('node:path');
|
|
|
|
const { injectCSS } = require('../utils');
|
|
|
|
module.exports = (win, options) => {
|
|
if (options.forceHide) {
|
|
injectCSS(win.webContents, path.join(__dirname, 'force-hide.css'));
|
|
} else if (!options.mode || options.mode === 'custom') {
|
|
injectCSS(win.webContents, path.join(__dirname, 'button-switcher.css'));
|
|
}
|
|
};
|