Skip to content

Commit

Permalink
Fix: Added check for empty README.md file (#37)
Browse files Browse the repository at this point in the history
Co-authored-by: Rushikesh Patange <rushikesh.patange@espressif.com>
  • Loading branch information
RushikeshPatange and Rushikesh Patange authored Aug 21, 2023
1 parent 1089cfa commit 2e125db
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions minimal-launchpad/minimal_ui_index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,17 @@ function MDtoHtml() {
return response.text();
}).then(result => {
let htmlText = converter.makeHtml(result);
message.innerHTML = htmlText;
consoleStartButton.click()
message.style.display = "block";
productInfoContainer.classList.add("col-6", "slide-up");
terminalContainer.classList.remove("col-12", "fade-in");
terminalContainer.classList.add("col-6", "slide-right");
utilities.resizeTerminal(fitAddon);

if (htmlText) {
message.innerHTML = htmlText;
message.style.display = "block";
productInfoContainer.classList.add("col-6", "slide-up");
terminalContainer.classList.remove("col-12", "fade-in");
terminalContainer.classList.add("col-6", "slide-right");
utilities.resizeTerminal(fitAddon);
} else {
message.style.display = "none";
}
consoleStartButton.click();
})
} catch (error) {
message.style.display = "none";
Expand Down

0 comments on commit 2e125db

Please sign in to comment.