Skip to content

Commit

Permalink
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ui/src/plugins/communicator.js
Original file line number Diff line number Diff line change
@@ -25,6 +25,9 @@ export default function (Vue) {
function onmessage (message) {
if (message.data === 'reload') {
EventBus.$emit('reload')

// Only the render <iframe> will be reloaded
// so old logs "spam" the console.
console.clear()
}
}
4 changes: 4 additions & 0 deletions ui/src/router/afterEach.js
Original file line number Diff line number Diff line change
@@ -13,4 +13,8 @@ export default function (to, from) {
title.innerText = currentName
? `${currentName} | ${TITLE_TEMPLATE}`
: TITLE_TEMPLATE

// Only the render <iframe> will be reloaded
// so old logs "spam" the console.
console.clear()
}

0 comments on commit 944e430

Please sign in to comment.