mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-14 20:01:47 +00:00
fix: apply fix from eslint
This commit is contained in:
@ -47,9 +47,7 @@ export interface SongInfo {
|
||||
export const getImage = async (src: string): Promise<Electron.NativeImage> => {
|
||||
const result = await net.fetch(src);
|
||||
const output = nativeImage.createFromBuffer(
|
||||
Buffer.from(
|
||||
await result.arrayBuffer(),
|
||||
),
|
||||
Buffer.from(await result.arrayBuffer()),
|
||||
);
|
||||
if (output.isEmpty() && !src.endsWith('.jpg') && src.includes('.jpg')) {
|
||||
// Fix hidden webp files (https://github.com/th-ch/youtube-music/issues/315)
|
||||
|
||||
Reference in New Issue
Block a user