Skip to content
Snippets Groups Projects
Commit a0d2755c authored by ale's avatar ale
Browse files

only show last few debug messages

parent bbb5a5d1
No related branches found
No related tags found
No related merge requests found
......@@ -216,3 +216,8 @@ table.summary {
font-size: 75%;
color: #999;
}
#debug p {
margin: 0;
padding: 0;
}
......@@ -459,7 +459,11 @@ djr.player = function() {
// Debugging.
djr.debug = function(msg) {
$('#debug').append(msg + '<br>');
var n_logs = $('#debug p').length;
if (n_logs > 7) {
$('#debug p:first').remove();
}
$('#debug').append('<p>' + msg + '</p>');
};
// An error has occurred in the player.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment