Return empty string in beforeunload instead of false

3col
Vitaliy Filippov 2014-12-17 14:51:39 +03:00
parent 187b0c80e9
commit ebacea16d6
1 changed files with 1 additions and 1 deletions

View File

@ -390,7 +390,7 @@ addListener(window, 'beforeunload', function(e)
e = e || window.event;
return (e.returnValue = 'Your comment will be lost. Leave page?');
}
return false;
return '';
});
addListener(window, 'hashchange', function()