mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 20:55:28 +00:00
Send back to plain page when redirecting to the dashboard
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -26,8 +26,8 @@ function computeResponse(password, challenge) {
|
||||
|
||||
function redirect() {
|
||||
// Login succeeded or not needed (empty password)
|
||||
// Default: Send back to index.lp (dashboard)
|
||||
var target = "index.lp";
|
||||
// Default: Send back to dashboard
|
||||
var target = ".";
|
||||
|
||||
// If DNS failure: send to Pi-hole diagnosis messages page
|
||||
if ($("#dns-failure-label").is(":visible")) {
|
||||
|
||||
@@ -100,7 +100,7 @@ function getData() {
|
||||
})
|
||||
.fail(function (data) {
|
||||
apiFailure(data);
|
||||
window.setTimeout(getData, 5*interval);
|
||||
window.setTimeout(getData, 5 * interval);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user