fixed: removed back handler
This commit is contained in:
		
							parent
							
								
									b5f784aa94
								
							
						
					
					
						commit
						4621a0aa0b
					
				
							
								
								
									
										16
									
								
								main.js
								
								
								
								
							
							
						
						
									
										16
									
								
								main.js
								
								
								
								
							| 
						 | 
				
			
			@ -1176,7 +1176,7 @@ function initshortcuts()
 | 
			
		|||
		if (!commands.find(c => c.hint == hint))
 | 
			
		||||
		{
 | 
			
		||||
			var shortcut = n.content.match(/shortcut: (.*)/)[1];
 | 
			
		||||
			commands.unshift({
 | 
			
		||||
			commands.push({
 | 
			
		||||
				hint: hint,
 | 
			
		||||
				shortcut: shortcut,
 | 
			
		||||
				action: function()
 | 
			
		||||
| 
						 | 
				
			
			@ -1201,20 +1201,6 @@ function init()
 | 
			
		|||
	window.onbeforeunload = checksaved;
 | 
			
		||||
	window.onclick = focuseditor;
 | 
			
		||||
 | 
			
		||||
	addfakehistory();
 | 
			
		||||
	window.onpopstate = function(evt)
 | 
			
		||||
	{
 | 
			
		||||
		addfakehistory();
 | 
			
		||||
		if (!searchdialog.hidden)
 | 
			
		||||
		{
 | 
			
		||||
			esc(evt);
 | 
			
		||||
		}
 | 
			
		||||
		else
 | 
			
		||||
		{
 | 
			
		||||
			loadprevious();	
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	initsnippets();
 | 
			
		||||
 | 
			
		||||
	currenttag = "";
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue