Update index.html

This commit is contained in:
Paul Wieland 2024-11-12 13:58:16 -05:00
parent fbcc2ae75d
commit 12af6603fb
1 changed files with 2 additions and 0 deletions

View File

@ -298,8 +298,10 @@
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";
}