This commit is contained in:
Andrew Morgan 2019-03-08 10:59:15 +00:00
parent 600b8690d7
commit c3d3034965
1 changed files with 1 additions and 20 deletions

View File

@ -25,26 +25,7 @@ import Promise from 'bluebird';
import rageshake from 'matrix-react-sdk/lib/rageshake/rageshake';
const ipcRenderer = window.ipcRenderer;
var globalKeybindings = {};
remote.autoUpdater.on('update-downloaded', onUpdateDownloaded);
var globalKeybindings = {};
// try to flush the rageshake logs to indexeddb before quit.
ipcRenderer.on('before-quit', function () {
console.log('riot-desktop closing');
rageshake.flush();
});
function onUpdateDownloaded(ev: Event, releaseNotes: string, ver: string, date: Date, updateURL: string) {
dis.dispatch({
action: 'new_version',
currentVersion: remote.app.getVersion(),
newVersion: ver,
releaseNotes: releaseNotes,
});
}
const globalKeybindings = {};
function platformFriendlyName(): string {
// used to use window.process but the same info is available here