Skip to content

Commit

Permalink
Fix the case when there is no "Portal" menu item
Browse files Browse the repository at this point in the history
  • Loading branch information
pascal-fb-martin committed Jan 18, 2022
1 parent ee7175b commit 92fca34
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions public/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@ function eventShow (response) {
for (var i = 0; i < elements.length; i++) {
elements[i].innerHTML = response.host;
}
if (response.proxy) {
document.getElementById('portal').href =
'http://'+response.proxy+'/index.html';
} else {
document.getElementById('portal').href =
'http://'+response.host+'/index.html';
portalmenu = document.getElementById('portal');
if (portalmenu) {
if (response.proxy) {
portalmenu.href = 'http://'+response.proxy+'/index.html';
} else {
portalmenu.href = 'http://'+response.host+'/index.html';
}
}
}

Expand Down

0 comments on commit 92fca34

Please sign in to comment.