You've already forked joplin
							
							
				mirror of
				https://github.com/laurent22/joplin.git
				synced 2025-10-31 00:07:48 +02:00 
			
		
		
		
	Desktop: Reset window hash to allow clicking an anchor multiple times (#4538)
This commit is contained in:
		| @@ -395,6 +395,16 @@ | ||||
| 			} | ||||
| 		} | ||||
|  | ||||
| 		window.addEventListener('hashchange', webviewLib.logEnabledEventHandler(e => { | ||||
| 			if (!window.location.hash) return; | ||||
|  | ||||
| 			// The timeout is necessary to prevent a race condition and give time for the window to scroll | ||||
| 			setTimeout(() => { | ||||
| 				// Reset the window hash to allow clicking on the same anchor link more than once | ||||
| 				window.location.hash = ''; | ||||
| 			}, 100); | ||||
| 		})); | ||||
|  | ||||
| 		document.addEventListener('contextmenu', webviewLib.logEnabledEventHandler(event => { | ||||
| 			let element = event.target; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user