fixed: removed back handler

This commit is contained in:
quenousimporte 2023-07-18 10:36:26 +02:00
parent b5f784aa94
commit 4621a0aa0b
1 changed files with 1 additions and 15 deletions

16
main.js
View File

@ -1176,7 +1176,7 @@ function initshortcuts()
if (!commands.find(c => c.hint == hint)) if (!commands.find(c => c.hint == hint))
{ {
var shortcut = n.content.match(/shortcut: (.*)/)[1]; var shortcut = n.content.match(/shortcut: (.*)/)[1];
commands.unshift({ commands.push({
hint: hint, hint: hint,
shortcut: shortcut, shortcut: shortcut,
action: function() action: function()
@ -1201,20 +1201,6 @@ function init()
window.onbeforeunload = checksaved; window.onbeforeunload = checksaved;
window.onclick = focuseditor; window.onclick = focuseditor;
addfakehistory();
window.onpopstate = function(evt)
{
addfakehistory();
if (!searchdialog.hidden)
{
esc(evt);
}
else
{
loadprevious();
}
}
initsnippets(); initsnippets();
currenttag = ""; currenttag = "";