Skip to content

Commit

Permalink
Highlights!
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustem Mussabekov committed Mar 23, 2022
1 parent 49ceeab commit 174b468
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 110 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"electron-context-menu": "3.1.x",
"electron-is-dev": "2.x",
"electron-squirrel-startup": "1.x",
"electron-util": "0.17.x",
"electron-window-state": "5.x",
"lodash": "^4.17.20",
"update-electron-app": "2.0.x"
Expand All @@ -40,7 +39,7 @@
"@electron-forge/maker-squirrel": "6.0.0-beta.63",
"@electron-forge/maker-zip": "6.0.0-beta.63",
"@electron-forge/publisher-github": "6.0.0-beta.63",
"electron": "17.0.x",
"electron": "17.1.x",
"shx": "^0.3.2"
}
}
5 changes: 0 additions & 5 deletions src/platform.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Platform specific logic
*/
const { app, BrowserWindow, autoUpdater } = require('electron')
const { enforceMacOSAppLocation } = require('electron-util')

module.exports = function() {
switch(process.platform) {
Expand All @@ -23,10 +22,6 @@ module.exports = function() {

//Hide instead closing of last window on darwin
case 'darwin':
try{
enforceMacOSAppLocation()
}catch(e) {}

app.on('activate', function () {
const windows = BrowserWindow.getAllWindows()
if (windows.length === 0){
Expand Down
Loading

0 comments on commit 174b468

Please sign in to comment.