mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-25 17:46:00 +00:00
fix
This commit is contained in:
@@ -205,6 +205,7 @@ function createWindow() {
|
|||||||
slashes: true,
|
slashes: true,
|
||||||
});
|
});
|
||||||
mainWindow.on('close', () => {
|
mainWindow.on('close', () => {
|
||||||
|
try {
|
||||||
fs.writeFileSync(
|
fs.writeFileSync(
|
||||||
configRootPath,
|
configRootPath,
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
@@ -213,6 +214,9 @@ function createWindow() {
|
|||||||
}),
|
}),
|
||||||
'utf-8'
|
'utf-8'
|
||||||
);
|
);
|
||||||
|
} catch (err) {
|
||||||
|
console.log('Error saving config-root:', err.message);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
mainWindow.loadURL(startUrl);
|
mainWindow.loadURL(startUrl);
|
||||||
if (os.platform() == 'linux') {
|
if (os.platform() == 'linux') {
|
||||||
|
|||||||
Reference in New Issue
Block a user