mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 07:01:31 +08:00 
			
		
		
		
	added debugModeEnabled option
This commit is contained in:
		
							parent
							
								
									c75439a4b5
								
							
						
					
					
						commit
						ec7021b436
					
				@ -155,10 +155,14 @@ async function consumeSyncData() {
 | 
				
			|||||||
        catch (e) {
 | 
					        catch (e) {
 | 
				
			||||||
            logError(`Encountered error ${e.message}: ${e.stack}, reloading frontend.`);
 | 
					            logError(`Encountered error ${e.message}: ${e.stack}, reloading frontend.`);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            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
 | 
					                // if there's an error in updating the frontend then the easy option to recover is to reload the frontend completely
 | 
				
			||||||
            if (!glob.isDev) {
 | 
					
 | 
				
			||||||
                utils.reloadApp();
 | 
					                utils.reloadApp();
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					            else {
 | 
				
			||||||
 | 
					                alert("Encountered error, check out the console.");
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        for (const syncRow of nonProcessedSyncRows) {
 | 
					        for (const syncRow of nonProcessedSyncRows) {
 | 
				
			||||||
 | 
				
			|||||||
@ -87,7 +87,8 @@ const defaultOptions = [
 | 
				
			|||||||
    { name: 'hideIncludedImages_main', value: 'true', isSynced: false },
 | 
					    { name: 'hideIncludedImages_main', value: 'true', isSynced: false },
 | 
				
			||||||
    { name: 'attributeListExpanded', value: 'false', isSynced: false },
 | 
					    { name: 'attributeListExpanded', value: 'false', isSynced: false },
 | 
				
			||||||
    { name: 'promotedAttributesExpanded', value: 'true', isSynced: true },
 | 
					    { name: 'promotedAttributesExpanded', value: 'true', isSynced: true },
 | 
				
			||||||
    { name: 'similarNotesExpanded', value: 'true', isSynced: true }
 | 
					    { name: 'similarNotesExpanded', value: 'true', isSynced: true },
 | 
				
			||||||
 | 
					    { name: 'debugModeEnabled', value: 'false', isSynced: false }
 | 
				
			||||||
];
 | 
					];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function initStartupOptions() {
 | 
					function initStartupOptions() {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user