mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-17 13:12:07 +00:00
chore: improve readability
This commit is contained in:
@ -127,7 +127,7 @@ export default (
|
||||
const getButton = (kind: keyof typeof mediaIcons) =>
|
||||
`<action ${display(
|
||||
kind,
|
||||
)} activationType="protocol" arguments="youtubemusic://${kind}"/>`;
|
||||
)} activationType="protocol" arguments="peardesktop://${kind}"/>`;
|
||||
|
||||
const getButtons = (isPaused: boolean) => `\
|
||||
<actions>
|
||||
@ -260,7 +260,7 @@ export default (
|
||||
songControls = getSongControls(win);
|
||||
|
||||
let currentSeconds = 0;
|
||||
on('ytmd:player-api-loaded', () => send('ytmd:setup-time-changed-listener'));
|
||||
on('peard:player-api-loaded', () => send('peard:setup-time-changed-listener'));
|
||||
|
||||
let savedSongInfo: SongInfo;
|
||||
let lastUrl: string | undefined;
|
||||
|
||||
@ -3,7 +3,7 @@ import fs from 'node:fs';
|
||||
|
||||
import { app, type NativeImage } from 'electron';
|
||||
|
||||
import youtubeMusicIcon from '@assets/youtube-music.png?asset&asarUnpack';
|
||||
import musicPlayerIcon from '@assets/icon.png?asset&asarUnpack';
|
||||
|
||||
import { type SongInfo } from '@/providers/song-info';
|
||||
|
||||
@ -46,7 +46,7 @@ export const notificationImage = (
|
||||
config: NotificationsPluginConfig,
|
||||
) => {
|
||||
if (!songInfo.image) {
|
||||
return youtubeMusicIcon;
|
||||
return musicPlayerIcon;
|
||||
}
|
||||
|
||||
if (!config.interactive) {
|
||||
@ -71,7 +71,7 @@ export const saveImage = (img: NativeImage, savePath: string) => {
|
||||
} catch (error: unknown) {
|
||||
console.error('Error writing song icon to disk:');
|
||||
console.trace(error);
|
||||
return youtubeMusicIcon;
|
||||
return musicPlayerIcon;
|
||||
}
|
||||
|
||||
return savePath;
|
||||
|
||||
Reference in New Issue
Block a user