Skip to content

Commit

Permalink
Fix informationPanel in mjpeg (cyberbotics#5732)
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Délèze authored Jan 13, 2023
1 parent 8d20f34 commit cd7b2ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resources/web/wwi/InformationPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ export default class InformationPanel {

this.webotsPresentation = document.createElement('div');
this.webotsPresentation.style.display = 'none';
const version = typeof WbWorld.instance !== 'undefined' ? WbWorld.instance.version : '';
this.webotsPresentation.innerHTML = `
<h2>Webots<span class=cloud>.cloud ` + WbWorld.instance.version + `</span></h2>
<h2>Webots<span class=cloud>.cloud ` + version + `</span></h2>
<img src=https://raw.githubusercontent.com/cyberbotics/webots/master/resources/icons/core/webots.png></img></br>
<p>Open Source Robot Simulator</p>
<a href="https://cyberbotics.com" target="_blank">Cyberbotics Ltd.</a>`;
Expand Down

0 comments on commit cd7b2ce

Please sign in to comment.