Remove pre-Catalina vibrancy code
This commit is contained in:
parent
eb2399201e
commit
c7e7206c14
|
@ -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();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue