mirror of https://github.com/rusefi/rusefi-1.git
add checks (#3029)
This commit is contained in:
parent
c481f161d5
commit
fef828efbb
|
@ -138,9 +138,11 @@ window.addEventListener('load', function() {
|
|||
hideEmptyColumns(sdiv.querySelector('.pinout-table'));
|
||||
}.bind(null, connector, sdiv, img));
|
||||
img.src = connector.info.image.file;
|
||||
if (document.title.length == 0) {
|
||||
if (document.title.length == 0 && typeof(connector.info.title) != "undefined") {
|
||||
document.title = connector.info.title;
|
||||
}
|
||||
if (typeof(connector.info.name) != "undefined") {
|
||||
sdiv.querySelector(".connector-name").innerText = connector.info.name;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue