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:
courtmanr@gmail.com
2025-05-30 11:16:05 +01:00
parent a3d9cb7f53
commit 2d51671c5f
+7 -1
View File
@@ -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);