Remove pre-Catalina vibrancy code

This commit is contained in:
Marquis Kurt 2019-09-30 18:25:03 -04:00
parent eb2399201e
commit c7e7206c14
No known key found for this signature in database
GPG Key ID: 725636D259F5402D
1 changed files with 0 additions and 7 deletions

View File

@ -30,10 +30,6 @@ function darwin() {
return process.platform === "darwin";
}
function catalina() {
return os.release() >= "19.0.0";
}
/**
* Register the protocol for Hyperspace
*/
@ -155,9 +151,6 @@ function createWindow() {
if (darwin()) {
systemPreferences.subscribeNotification('AppleInterfaceThemeChangedNotification', () => {
if (mainWindow != null) {
if (!catalina()) {
mainWindow.setVibrancy(systemPreferences.isDarkMode() ? "ultra-dark" : "light");
}
mainWindow.webContents.reload();
}
});