mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +00:00
feat: apply rollup 🚀 (#20)
Co-authored-by: Su-Yong <simssy2205@gmail.com>
This commit is contained in:
@ -1,10 +1,8 @@
|
||||
import path from 'node:path';
|
||||
|
||||
import { ipcRenderer, Menu } from 'electron';
|
||||
|
||||
import { createPanel } from './menu/panel';
|
||||
|
||||
import { ElementFromFile } from '../utils';
|
||||
import logo from '../../assets/youtube-music.svg';
|
||||
import { isEnabled } from '../../config/plugins';
|
||||
|
||||
function $<E extends Element = Element>(selector: string) {
|
||||
@ -18,7 +16,6 @@ export default () => {
|
||||
const navBar = document.querySelector<HTMLDivElement>('#nav-bar-background');
|
||||
if (isMacOS) titleBar.style.setProperty('--offset-left', '70px');
|
||||
|
||||
const logo = ElementFromFile(path.join(__dirname, '..' , '..' , 'assets', 'youtube-music.svg'));
|
||||
logo.classList.add('title-bar-icon');
|
||||
|
||||
if (!isMacOS) titleBar.appendChild(logo);
|
||||
|
||||
Reference in New Issue
Block a user