Removed debugging logs
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
b3d3a8ec88
commit
7dd155a507
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue