mirror of
https://github.com/zadam/trilium.git
synced 2025-11-16 02:05:53 +01:00
bug fixes
This commit is contained in:
@@ -133,9 +133,14 @@ async function checkOutstandingSyncs() {
|
||||
const { stats, initialized } = await $.get('api/sync/stats');
|
||||
|
||||
if (initialized) {
|
||||
const remote = utils.dynamicRequire('electron').remote;
|
||||
remote.app.relaunch();
|
||||
remote.app.exit(0);
|
||||
if (utils.isElectron()) {
|
||||
const remote = utils.dynamicRequire('electron').remote;
|
||||
remote.app.relaunch();
|
||||
remote.app.exit(0);
|
||||
}
|
||||
else {
|
||||
utils.reloadApp();
|
||||
}
|
||||
}
|
||||
else {
|
||||
const totalOutstandingSyncs = stats.outstandingPushes + stats.outstandingPulls;
|
||||
@@ -155,4 +160,4 @@ function hideAlert() {
|
||||
|
||||
ko.applyBindings(new SetupModel(), document.getElementById('setup-dialog'));
|
||||
|
||||
$("#setup-dialog").show();
|
||||
$("#setup-dialog").show();
|
||||
|
||||
Reference in New Issue
Block a user