From c3d303496599fb7d86e918e076955cffb6da8814 Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Fri, 8 Mar 2019 10:59:15 +0000 Subject: [PATCH] lint --- src/vector/platform/ElectronPlatform.js | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/src/vector/platform/ElectronPlatform.js b/src/vector/platform/ElectronPlatform.js index f470ae45..f80d23be 100644 --- a/src/vector/platform/ElectronPlatform.js +++ b/src/vector/platform/ElectronPlatform.js @@ -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