feat(donate): donate window

This commit is contained in:
Alexey Kasyanchuk
2018-03-07 04:50:39 +03:00
parent 32bf512bf5
commit ae45555116
2 changed files with 34 additions and 0 deletions

View File

@ -40,6 +40,22 @@ export const aboutMenuTemplate = {
click: () => {
shell.openExternal('https://github.com/DEgITx/rats-search/issues')
},
},
{
label: "Donate",
accelerator: "CmdOrCtrl+]",
click: () => {
const win = new BrowserWindow({
parent: BrowserWindow.getFocusedWindow(),
modal: true
})
win.setMenu(null)
win.loadURL(url.format({
pathname: path.join(__dirname, "donate.html"),
protocol: "file:",
slashes: true
}))
},
}
]
};