Skip to content

Commit 90d2197

Browse files
strickvlclaude
andcommitted
Replace onclick with addEventListener for dashboard button
Improves maintainability by allowing multiple event handlers and preventing accidental overwriting of existing listeners. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 3016288 commit 90d2197

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

assets/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,10 +502,10 @@
502502
dashboardButton.style.display = "flex";
503503

504504
// Add click handler to open in external browser
505-
dashboardButton.onclick = function(e) {
505+
dashboardButton.addEventListener('click', function(e) {
506506
e.preventDefault();
507507
vscode.postMessage({ type: "openDashboard", url: url });
508-
};
508+
});
509509
}
510510
}
511511

0 commit comments

Comments
 (0)