Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulWieland committed Nov 12, 2024
1 parent fbcc2ae commit 12af660
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,10 @@ <h3>Advanced Users</h3>
var img = new Image();
img.src = `wiring_diagrams/${hardware}_${diagram_protocol}.png`;
if(img.height !== 0){
console.log(`diagram: ${img.src}`);
document.querySelector("#wiring_diagram").src = img.src;
}else{
console.log(`img not found: ${img.src}`);
document.querySelector("#wiring_diagram").src = "wiring_diagrams/v25iboard_secplus.png";
}

Expand Down

0 comments on commit 12af660

Please sign in to comment.