|
|
|
@ -479,6 +479,13 @@ if ( config.get('disable_gpu') ) app.disableHardwareAcceleration();
|
|
|
|
|
// initialization and is ready to create browser windows.
|
|
|
|
|
app.on('ready', function() { |
|
|
|
|
config.get('master_password') ? createMasterPasswordWindow() : createWindow(); |
|
|
|
|
|
|
|
|
|
// Load Chrome extensions
|
|
|
|
|
const rawExtensionPaths = config.get('extension_paths') |
|
|
|
|
if(rawExtensionPaths) { |
|
|
|
|
const extentionPaths = rawExtensionPaths.split(',').map(path => path.trim()) |
|
|
|
|
extentionPaths.forEach(path => console.log('Extension added: ', BrowserWindow.addExtension(path))) |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
// Quit when all windows are closed.
|
|
|
|
|