diff --git a/README.md b/README.md index af0fce7..88873f5 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ -![Flathub](https://img.shields.io/flathub/downloads/io.github.aandrew_me.ytdn?label=Flathub%20downloads) +[![Flathub](https://img.shields.io/flathub/downloads/io.github.aandrew_me.ytdn?label=Flathub%20downloads)](https://beta.flathub.org/apps/details/me.aandrew.ytdownloader) [![GitHub downloads](https://img.shields.io/github/downloads/aandrew-me/ytdownloader/total?label=Github%20downloads)](https://github.com/aandrew-me/ytDownloader/releases) [![GitHub release (latest by date)](https://img.shields.io/github/v/release/aandrew-me/ytdownloader?label=latest%20release)](https://github.com/aandrew-me/ytDownloader/releases/latest) [![Flathub](https://img.shields.io/flathub/v/io.github.aandrew_me.ytdn)](https://beta.flathub.org/apps/io.github.aandrew_me.ytdn) diff --git a/main.js b/main.js index 13bfd1f..7c1251d 100644 --- a/main.js +++ b/main.js @@ -200,6 +200,10 @@ ipcMain.on("load-win", (event, file) => { win.loadFile(file); }); ipcMain.on("load-page", (event, file) => { + let isTransparent = false; + if (process.platform == "linux") { + isTransparent = true; + } secondaryWindow = new BrowserWindow({ webPreferences: { nodeIntegration: true, @@ -208,7 +212,7 @@ ipcMain.on("load-page", (event, file) => { parent: win, modal: true, show: false, - transparent: true + transparent: isTransparent }); secondaryWindow.loadFile(file); secondaryWindow.setMenu(null);