1
0
mirror of https://github.com/hyperspacedev/hyperspace synced 2025-01-24 06:02:54 +01:00

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

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