Improved Splash Screen#1887
Conversation
Greptile SummaryAttempted to improve the splash screen by replacing CSS pseudo-elements ( Critical Issues Found
The Confidence Score: 0/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Page Load] --> B[DOMContentLoaded Event]
B --> C[updateSplash function]
C --> D{getElementById splash}
D -->|Element exists| E[Update splash-version text]
D -->|Element missing| F[Return early - CURRENT BUG]
E --> G[Update splash-message text]
G --> H[MutationObserver watches body attributes]
H --> I[Listen for data-version & data-small-msg changes]
style F fill:#ff6b6b
style D fill:#ffd93d
Last reviewed commit: 6ee26a0 |
www/index.html
Outdated
| const splash = document.getElementById("splash"); | ||
| if (!splash) return; |
There was a problem hiding this comment.
getElementById("splash") will always return null - there's no element with id="splash" in the HTML body
| const splash = document.getElementById("splash"); | |
| if (!splash) return; | |
| const splash = document.getElementById("splash"); | |
| if (!splash) { | |
| // Create splash element if it doesn't exist | |
| const splashDiv = document.createElement("div"); | |
| splashDiv.id = "splash"; | |
| splashDiv.innerHTML = '<div class="splash-version"></div><div class="splash-message"></div>'; | |
| document.body.appendChild(splashDiv); | |
| } |
www/index.html
Outdated
| <wc-page id="root" class="primary"></wc-page> | ||
| </body> |
There was a problem hiding this comment.
duplicate <wc-page> element and closing </body> tag
| <wc-page id="root" class="primary"></wc-page> | |
| </body> | |
| </html> |
Additional Comments (3)
|
6ee26a0 to
4a72e5e
Compare
No description provided.