Browse Source

Merge pull request #158 from dpeukert/replace-deprecated-function

Replaced deprecated functions
pull/3202/head
TheGoddessInari 5 years ago committed by GitHub
parent
commit
e50d8f506b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/ux/WebView.js
  2. 2
      electron/main.js
  3. 4
      electron/menu.js

2
app/ux/WebView.js

@ -775,7 +775,7 @@ Ext.define('Hamsket.ux.WebView',{
}
,setZoomLevel(level)
{
this.getWebContents().setZoomLevel(level);
this.getWebContents().zoomLevel = level;
}
,zoomIn() {

2
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);

4
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) {
<!-- DON'T REMOVE THE FOLLOWING LINES -->
-
> ${app.getName()} ${app.getVersion()}
> ${app.name} ${app.getVersion()}
> Electron ${process.versions.electron}
> ${process.platform} ${process.arch} ${os.release()}
> ${buildversion}`;

Loading…
Cancel
Save