2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-27 20:34:52 +00:00

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 de59a361eb
commit c6b5798613

View File

@ -697,7 +697,11 @@ function FW_weekprofileBack(widget)
if (isInIframe) {
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";