|
|
|
@ -58,7 +58,7 @@ const config = new Config({
|
|
|
|
|
user_agent: "", |
|
|
|
|
default_service: "ramboxTab", |
|
|
|
|
sendStatistics: false, |
|
|
|
|
|
|
|
|
|
extension_paths: "", |
|
|
|
|
x: undefined, |
|
|
|
|
y: undefined, |
|
|
|
|
width: 1000, |
|
|
|
@ -773,9 +773,15 @@ if (config.get("disable_gpu")) app.disableHardwareAcceleration();
|
|
|
|
|
|
|
|
|
|
// This method will be called when Electron has finished
|
|
|
|
|
// initialization and is ready to create browser windows.
|
|
|
|
|
app.on("ready", function () { |
|
|
|
|
config.get("master_password") ? createMasterPasswordWindow() : createWindow(); |
|
|
|
|
// setInterval(availableSpaceWatchDog, 1000 * 60);
|
|
|
|
|
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.
|
|
|
|
|
app.on("window-all-closed", function () { |
|
|
|
|