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() { 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); 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}`;