mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-22 11:13:26 +00:00
fix: initialize PulseApp before using theme on setup page
- Create PulseApp object before loading theme.js - Add safety check before calling theme.init() - This fixes "PulseApp is not defined" error on setup page 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -309,10 +309,16 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
// Initialize PulseApp if it doesn't exist
|
||||
window.PulseApp = window.PulseApp || {};
|
||||
</script>
|
||||
<script src="/js/theme.js"></script>
|
||||
<script>
|
||||
// Initialize theme
|
||||
PulseApp.theme.init();
|
||||
if (PulseApp.theme && PulseApp.theme.init) {
|
||||
PulseApp.theme.init();
|
||||
}
|
||||
|
||||
function togglePasswordVisibility(inputId) {
|
||||
const input = document.getElementById(inputId);
|
||||
|
||||
Reference in New Issue
Block a user