diff --git a/app/donate.html b/app/donate.html index b1bc137..a1ee9a2 100644 --- a/app/donate.html +++ b/app/donate.html @@ -3,10 +3,78 @@ Support Torrent Search + +
- + +
+ + +
+
Bitcoin:  3Q6AKfKpQKA5B3f4VmmY4aGTcTn4V7Tsju
Litecoin:  LW6pugMTdrDyFmPdjjVj9KXTVMK93Mt8eo
diff --git a/app/patreon.png b/app/patreon.png new file mode 100644 index 0000000..a8abe91 Binary files /dev/null and b/app/patreon.png differ diff --git a/src/background/menu/about_menu_template.js b/src/background/menu/about_menu_template.js index c68c9ac..d167d2e 100644 --- a/src/background/menu/about_menu_template.js +++ b/src/background/menu/about_menu_template.js @@ -47,7 +47,8 @@ export const aboutMenuTemplate = { click: () => { const win = new BrowserWindow({ parent: BrowserWindow.getFocusedWindow(), - modal: true + modal: true, + width: 1000 }) win.setMenu(null) win.loadURL(url.format({ @@ -55,6 +56,19 @@ export const aboutMenuTemplate = { protocol: "file:", slashes: true })) + + const handleRedirect = (e, url) => { + if(url != win.webContents.getURL()) { + if(!url.includes('patreon')) + return + + e.preventDefault() + shell.openExternal(url) + } + } + + win.webContents.on('will-navigate', handleRedirect) + win.webContents.on('new-window', handleRedirect) }, }, {