Go back to the alerts page when applying the configuration

This commit is contained in:
emanuele-f 2020-01-27 16:02:43 +01:00
parent 3d2de3a295
commit b3f862b53d
2 changed files with 4 additions and 2 deletions

View file

@ -13,8 +13,9 @@ String.prototype.titleCase = function () {
const reloadPageAfterPOST = () => {
if(location.href.indexOf("user_script=") > 0) {
/* Remove the "user_script" _GET parameter */
location.href = page_url + location.hash;
/* Go back to the alerts page */
//location.href = page_url + location.hash;
window.history.back();
} else {
/* The URL is still the same as before, need to force a reload */
location.reload();