mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 03:46:37 +01:00
added debugModeEnabled option
This commit is contained in:
@@ -155,10 +155,14 @@ async function consumeSyncData() {
|
||||
catch (e) {
|
||||
logError(`Encountered error ${e.message}: ${e.stack}, reloading frontend.`);
|
||||
|
||||
// if there's an error in updating the frontend then the easy option to recover is to reload the frontend completely
|
||||
if (!glob.isDev) {
|
||||
if (!glob.isDev && !options.is('debugModeEnabled')) {
|
||||
// if there's an error in updating the frontend then the easy option to recover is to reload the frontend completely
|
||||
|
||||
utils.reloadApp();
|
||||
}
|
||||
else {
|
||||
alert("Encountered error, check out the console.");
|
||||
}
|
||||
}
|
||||
|
||||
for (const syncRow of nonProcessedSyncRows) {
|
||||
|
||||
Reference in New Issue
Block a user