diff --git a/html/index.html b/html/index.html
index 9f632c3..5d640e1 100644
--- a/html/index.html
+++ b/html/index.html
@@ -43,7 +43,7 @@
diff --git a/src/renderer.js b/src/renderer.js
index 63e97ae..7123491 100644
--- a/src/renderer.js
+++ b/src/renderer.js
@@ -25,6 +25,7 @@ const CONSTANTS = {
TITLE_INPUT: "titleName",
URL_INPUTS: ".url",
AUDIO_PRESENT_SECTION: "audioPresent",
+ QUIT_APP_BTN: "quitAppBtn",
// Format Selectors
VIDEO_FORMAT_SELECT: "videoFormatSelect",
AUDIO_FORMAT_SELECT: "audioFormatSelect",
@@ -310,6 +311,8 @@ class YtDownloaderApp {
}
$(CONSTANTS.DOM_IDS.POPUP_BOX_MAC).style.display = "block";
+
+ return ""
} else if (platform() === "freebsd") {
try {
const foundPath = execSync("which yt-dlp").toString().trim();
@@ -652,6 +655,10 @@ class YtDownloaderApp {
this._showPopup(i18n.__("copiedText"), false);
});
+ $(CONSTANTS.DOM_IDS.QUIT_APP_BTN).addEventListener("click", () => {
+ ipcRenderer.send("quit", "quit");
+ });
+
// IPC listeners
ipcRenderer.on("link", (event, text) => this.getInfo(text));
ipcRenderer.on("downloadPath", (event, downloadPath) => {