mirror of
https://github.com/vrana/adminer.git
synced 2025-08-13 01:54:00 +02:00
Avoid double AJAX refresh in Chrome
This commit is contained in:
@@ -346,7 +346,7 @@ function ajaxSend(url, data, popState) {
|
||||
* @param PopStateEvent|history
|
||||
*/
|
||||
onpopstate = function (event) {
|
||||
if (!event.state || confirm(areYouSure)) {
|
||||
if (event.state ? confirm(areYouSure) : ajaxState) {
|
||||
ajaxSend(location.href, event.state, 1); // 1 - disable pushState
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user