fix: optional accessor
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@ if (started) {
|
||||
|
||||
// Set the dock icon for development mode on macOS.
|
||||
if (process.platform === 'darwin' && !app.isPackaged) {
|
||||
app.dock.setIcon(path.join(__dirname, '../../assets/icon.png'));
|
||||
app.dock?.setIcon(path.join(__dirname, '../../assets/icon.png'));
|
||||
}
|
||||
|
||||
const createWindow = () => {
|
||||
|
||||
Reference in New Issue
Block a user