mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-13 03:11:46 +00:00
feat(downloader): New option to download on finish (#1964)
Co-authored-by: JellyBrick <shlee1503@naver.com>
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
import { app, BrowserWindow } from 'electron';
|
||||
import is from 'electron-is';
|
||||
|
||||
export const getFolder = (customFolder: string) =>
|
||||
customFolder || app.getPath('downloads');
|
||||
export const getFolder = (customFolder?: string) =>
|
||||
customFolder ?? app.getPath('downloads');
|
||||
|
||||
export const sendFeedback = (win: BrowserWindow, message?: unknown) => {
|
||||
win.webContents.send('downloader-feedback', message);
|
||||
|
||||
Reference in New Issue
Block a user