From 8af5792c6a6363e50715fd339649fdddb8695508 Mon Sep 17 00:00:00 2001 From: Daniel Peukert Date: Fri, 3 Jan 2020 09:54:25 +0100 Subject: [PATCH 1/3] Replaced deprecated .getName() with .name --- electron/menu.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/electron/menu.js b/electron/menu.js index cfa2f41f..bccc5c11 100644 --- a/electron/menu.js +++ b/electron/menu.js @@ -2,7 +2,7 @@ const os = require('os'); const {app, BrowserWindow, Menu, shell} = require('electron'); const path = require('path'); -const appName = app.getName(); +const appName = app.name; function sendAction(action, ...args) { const win = BrowserWindow.getAllWindows()[0]; @@ -49,7 +49,7 @@ module.exports = function(config) { - - > ${app.getName()} ${app.getVersion()} + > ${app.name} ${app.getVersion()} > Electron ${process.versions.electron} > ${process.platform} ${process.arch} ${os.release()} > ${buildversion}`; From f1e1888241ee0828fe8d49c882fd4591f3e0a218 Mon Sep 17 00:00:00 2001 From: Daniel Peukert Date: Fri, 3 Jan 2020 10:13:44 +0100 Subject: [PATCH 2/3] Replaced deprecated .setBadgeCount() with .badgeCount --- electron/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electron/main.js b/electron/main.js index 430716c9..c276bb92 100644 --- a/electron/main.js +++ b/electron/main.js @@ -249,7 +249,7 @@ function updateBadge(title) { mainWindow.webContents.send('setBadge', messageCount); } else { // macOS & Linux - app.setBadgeCount(messageCount); + app.badgeCount = messageCount; } if ( messageCount > 0 && !mainWindow.isFocused() && !config.get('dont_disturb') && config.get('flash_frame') ) mainWindow.flashFrame(true); From 4b97805f416a31b9616495aae5dec1e27b733498 Mon Sep 17 00:00:00 2001 From: Daniel Peukert Date: Fri, 3 Jan 2020 10:13:58 +0100 Subject: [PATCH 3/3] Replaced deprecated .setZoomLevel() with .zoomLevel --- app/ux/WebView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/ux/WebView.js b/app/ux/WebView.js index 6dd152fe..fc549744 100644 --- a/app/ux/WebView.js +++ b/app/ux/WebView.js @@ -775,7 +775,7 @@ Ext.define('Hamsket.ux.WebView',{ } ,setZoomLevel(level) { - this.getWebContents().setZoomLevel(level); + this.getWebContents().zoomLevel = level; } ,zoomIn() {