Skip to content

Commit

Permalink
MacOS 10.14+ fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
xanderfrangos committed Jan 12, 2020
1 parent 6094091 commit 290c50c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ function sendToAllWindows(eventName, data) {
}

function getVibrancy() {
if(os.platform === "darwin") {
const release = os.release().split('.')[1]
if(release >= 14) {
if(os.platform() === "darwin") {
const release = os.release().split('.')[0]
if(release >= 18) {
return 'fullscreen-ui'
}
}
Expand Down Expand Up @@ -218,7 +218,7 @@ function createSettingsWindow() {
icon: __dirname + '/assets/icon-shadow.ico',
title: 'Crushee Settings',
show: false,
frame: (os.platform === "darwin" ? true : false),
frame: (os.platform() === "darwin" ? true : false),
resizable: false,
backgroundColor: '#00FFFFFF',
titleBarStyle: 'hidden',
Expand Down Expand Up @@ -259,7 +259,7 @@ function createWindow() {
icon: __dirname + '/assets/icon-shadow.ico',
title: 'Crushee',
show: false,
frame: (os.platform === "darwin" ? true : false),
frame: (os.platform() === "darwin" ? true : false),
backgroundColor: '#00FFFFFF',
titleBarStyle: 'hidden',
vibrancy: getVibrancy(),
Expand Down

0 comments on commit 290c50c

Please sign in to comment.