Fix back button behavior
This commit is contained in:
parent
5691744543
commit
21c5113b88
@ -70,17 +70,16 @@ document.addEventListener("backbutton", function (event) {
|
|||||||
var iframe = document.getElementById("appframe");
|
var iframe = document.getElementById("appframe");
|
||||||
iframe.contentWindow.postMessage("goback", "*");
|
iframe.contentWindow.postMessage("goback", "*");
|
||||||
historyctr--;
|
historyctr--;
|
||||||
} else if (_returnscreen != null) {
|
|
||||||
openscreen(_returnscreen, "FADE");
|
|
||||||
_returnscreen = null;
|
|
||||||
} else {
|
} else {
|
||||||
openscreen("home", "FADE");
|
if (cordova.platformId == 'android') {
|
||||||
|
StatusBar.backgroundColorByHexString("#1976d2");
|
||||||
|
} else {
|
||||||
|
StatusBar.backgroundColorByHexString("#2196f3");
|
||||||
|
}
|
||||||
|
router.back();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (_returnscreen != null) {
|
router.back();
|
||||||
openscreen(_returnscreen, "FADE");
|
|
||||||
_returnscreen = null;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user