Skip to content

Commit 1130932

Browse files
committed
fix: generate quote on page load, not just on button click.
1 parent 1f8d1d1 commit 1130932

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Sprint-3/quote-generator/quotes.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,3 +502,5 @@ newQuoteBtn.addEventListener("click", () => {
502502
quoteText.textContent = selectedQuote.quote;
503503
authorText.textContent = `-- ${selectedQuote.author}`;
504504
});
505+
506+
document.onload = newQuoteBtn.click();

0 commit comments

Comments
 (0)