mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +00:00
15 lines
341 B
TypeScript
15 lines
341 B
TypeScript
import { BrowserWindow } from 'electron';
|
|
|
|
import config from './config';
|
|
import style from './style.css';
|
|
|
|
import { injectCSS } from '../utils';
|
|
|
|
export default (win: BrowserWindow) => {
|
|
config.subscribeAll((newConfig) => {
|
|
win.webContents.send('ambient-mode:config-change', newConfig);
|
|
});
|
|
|
|
injectCSS(win.webContents, style);
|
|
};
|