Add incremental manifest-time code quality checks and JS duplicate method detection

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-12-26 21:49:28 +00:00
parent 0ea0341aeb
commit b54484c7ed
32 changed files with 589 additions and 113 deletions

View File

@@ -50,9 +50,14 @@ class Ajax {
const error = event.reason;
console.error('Uncaught Ajax error:', error);
// Show Modal.error() for uncaught Ajax errors
if (typeof Modal !== 'undefined' && Modal.error) {
await Modal.error(error, 'Uncaught Ajax Error');
// Show error modal for uncaught Ajax errors
// In debug mode, use fatal_error() for detailed file/line info
if (typeof Modal !== 'undefined') {
if (window.rsxapp?.debug && Modal.fatal_error) {
await Modal.fatal_error(error, 'Uncaught Ajax Error');
} else if (Modal.error) {
await Modal.error(error, 'Uncaught Ajax Error');
}
}
}
});