-
Notifications
You must be signed in to change notification settings - Fork 0
Cssjs #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 2 out of 5 changed files in this pull request and generated 1 comment.
Files not reviewed (3)
- src/footer.html: Language not supported
- src/head.html: Language not supported
- src/style.css: Language not supported
Comments suppressed due to low confidence (1)
src/script.js:252
- Ensure navNode.firstChild exists before accessing innerText to prevent potential runtime errors if the navigation node is empty.
if (navNode.firstChild.innerText.trim() === "Home") return;
| const parent = document.getElementById("changelogs-target"); | ||
| const changelogEntries = []; | ||
|
|
||
| for (let i = 0; i <= 2; i += 1) { |
Copilot
AI
Apr 3, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The loop assumes that feed.items contains at least three entries; add a check to ensure the index exists before iterating to avoid runtime errors when fewer items are available.
| for (let i = 0; i <= 2; i += 1) { | |
| const maxEntries = Math.min(feed.items.length, 3); | |
| for (let i = 0; i < maxEntries; i += 1) { |
🧰 Changes
Describe in detail what this PR is for.
🧬 QA & Testing
Provide as much information as you can on how to test what you've done.