Removed debugging logs
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kolaente 2019-09-04 19:37:57 +02:00
parent b3d3a8ec88
commit 7dd155a507
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 12 deletions

View File

@ -37,7 +37,6 @@ const app = new Vue({
this.mode = mode
},
mounted() {
console.log(mode)
if (typeof (EventSource) === "undefined") {
this.error = 'Diese Browser wird nicht unterstützt.'
return
@ -48,28 +47,18 @@ const app = new Vue({
console.debug('unsupported event!', e)
};
source.addEventListener('init', e => {
console.debug('init', e)
this.data = JSON.parse(e.data)
// We assume we get the data sorted, so we won't sort it here
this.data = JSON.parse(e.data)
})
source.addEventListener('update', e => {
console.debug('update', e)
this.update(JSON.parse(e.data))
})
source.addEventListener('create', e => {
console.debug('create', e)
this.create(JSON.parse(e.data))
})
source.addEventListener('delete', e => {
console.debug('delete', e)
this.delete(JSON.parse(e.data))
})
source.onopen = evt => {
console.debug('SSE opened', evt)
}
source.onerror = evt => {
console.debug('SSE Error', evt)
}
},
methods: {
sortData() {