personal memory agent
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: support app background script leaking text onto page

The support background.html had its own <script> tags, but app.html
already wraps background templates in <script> tags. The nested
</script> caused the browser to close the outer tag early, rendering
the catch block as visible text. Also fixed start() → initialize()
to match AppServices API so polling actually runs.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+6 -9
+6 -9
apps/support/background.html
··· 1 - <!-- Support background service: polls for ticket updates, manages badges --> 2 - <script> 3 - (function() { 4 - const POLL_INTERVAL = 5 * 60 * 1000; // 5 minutes 5 - let pollTimer = null; 1 + {# Support background service: polls for ticket updates, manages badges #} 2 + 3 + const POLL_INTERVAL = 5 * 60 * 1000; // 5 minutes 4 + let pollTimer = null; 6 5 7 - AppServices.register('support', { 8 - start() { 6 + AppServices.register('support', { 7 + initialize() { 9 8 updateBadge(); 10 9 pollTimer = setInterval(updateBadge, POLL_INTERVAL); 11 10 ··· 50 49 // Silently ignore — support may be disabled or portal unreachable 51 50 } 52 51 } 53 - })(); 54 - </script>