mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 15:11:31 +08:00 
			
		
		
		
	fix setting note title on back/forward button click, closes #1334
This commit is contained in:
		
							parent
							
								
									8901c3ec91
								
							
						
					
					
						commit
						0afd3c65aa
					
				@ -115,6 +115,7 @@ export default class TabManager extends Component {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
            // using pushState instead of directly modifying document.location because it does not trigger hashchange
 | 
					            // using pushState instead of directly modifying document.location because it does not trigger hashchange
 | 
				
			||||||
            window.history.pushState(null, "", url);
 | 
					            window.history.pushState(null, "", url);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        document.title = "Trilium Notes";
 | 
					        document.title = "Trilium Notes";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -122,7 +123,6 @@ export default class TabManager extends Component {
 | 
				
			|||||||
            // it helps navigating in history if note title is included in the title
 | 
					            // it helps navigating in history if note title is included in the title
 | 
				
			||||||
            document.title += " - " + activeTabContext.note.title;
 | 
					            document.title += " - " + activeTabContext.note.title;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
        this.triggerEvent('activeNoteChanged'); // trigger this even in on popstate event
 | 
					        this.triggerEvent('activeNoteChanged'); // trigger this even in on popstate event
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user