@ -142,14 +142,8 @@ module.exports = () => {
desktopCore ? . handleOpenUrl ? . ( a . includes ( '--url' ) && a [ a . indexOf ( '--' ) + 1 ] ) ; // Change url of main window if protocol is used (uses like "discord --url -- discord://example")
} ) ;
if ( ! app . requestSingleInstanceLock ( ) && ! ( process . argv . includes ( '--multi-instance' ) || oaConfig . multiInstance === true ) ) {
log ( 'Bootstrap' , 'Non-first instance' ) ;
return app . quit ( ) ;
}
if ( ! app . requestSingleInstanceLock ( ) && ! ( process . argv . includes ( '--multi-instance' ) || oaConfig . multiInstance === true ) ) return app . quit ( ) ;
if ( app . isReady ( ) ) {
startUpdate ( ) ;
} else {
app . once ( 'ready' , startUpdate ) ;
}
if ( app . isReady ( ) ) startUpdate ( ) ;
else app . once ( 'ready' , startUpdate ) ;
} ;