added: hide search window on back button
This commit is contained in:
parent
5536821d2e
commit
6d3b743304
1 changed files with 7 additions and 0 deletions
7
main.js
7
main.js
|
|
@ -1201,6 +1201,13 @@ function init()
|
|||
window.onbeforeunload = checksaved;
|
||||
window.onclick = focuseditor;
|
||||
|
||||
history.pushState({}, '', '.');
|
||||
window.onpopstate = function(evt)
|
||||
{
|
||||
history.pushState({}, '', '.');
|
||||
esc(evt);
|
||||
}
|
||||
|
||||
initsnippets();
|
||||
|
||||
currenttag = "";
|
||||
|
|
|
|||
Loading…
Reference in a new issue