Skip to content

Commit 0e24941

Browse files
author
Pooya Parsa
committed
[playground] limit console output buffer
1 parent 7f7728e commit 0e24941

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/pages/play.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,10 @@ window.onload = function () {
252252
253253
text = text.replace('[Vue warn]: ', '');
254254
255+
if(this.messages.length > 10) {
256+
this.messages.splice(10);
257+
}
258+
255259
this.messages.unshift([tag, text]);
256260
},
257261
run() {

0 commit comments

Comments
 (0)