98_weekprofile: fix use document.referrer to jump back

git-svn-id: https://svn.fhem.de/fhem/trunk@16213 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Risiko
2018-02-18 13:10:19 +00:00
parent 50df2fa377
commit caa2db9e00

View File

@@ -695,9 +695,13 @@ function FW_weekprofileBack(widget)
if (widget.JMPBACK){
var isInIframe = (window.location != window.parent.location) ? true : false;
if (isInIframe) {
parent.history.back();
parent.history.back();
} else
window.history.back();
if (document.referrer) {
window.location.assign(document.referrer)
} else {
window.history.back() //maybe problems with reload
}
}
else {
widget.MODE = "SHOW";