diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index ce456d0..02aae4b 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -141,7 +141,7 @@ export default { }); }, onGotNewStream(stream) { - if (this.streams.length > 50) { + if (this.streams.length > this.$store.state.pageSize * 2) { this.streams.pop(); } this.streams.unshift(stream); diff --git a/src/store.js b/src/store.js index 17e4215..1d0f938 100644 --- a/src/store.js +++ b/src/store.js @@ -11,7 +11,7 @@ export default new Vuex.Store({ apiPassword: '123456', hexdumpBlockSize: 16, hexdumpLineNumberBase: 10, - pageSize: 50, + pageSize: 25, displayFavOnly: false, }, mutations: {