forked from matrix/element-web
lint
This commit is contained in:
parent
600b8690d7
commit
c3d3034965
|
@ -25,26 +25,7 @@ import Promise from 'bluebird';
|
||||||
import rageshake from 'matrix-react-sdk/lib/rageshake/rageshake';
|
import rageshake from 'matrix-react-sdk/lib/rageshake/rageshake';
|
||||||
|
|
||||||
const ipcRenderer = window.ipcRenderer;
|
const ipcRenderer = window.ipcRenderer;
|
||||||
var globalKeybindings = {};
|
const 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,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function platformFriendlyName(): string {
|
function platformFriendlyName(): string {
|
||||||
// used to use window.process but the same info is available here
|
// used to use window.process but the same info is available here
|
||||||
|
|
Loading…
Reference in New Issue