forked from TWS/kalkutago
Compare commits
1 commit
e25301655b
...
4277d663d0
Author | SHA1 | Date | |
---|---|---|---|
D. Scott Boggs | 4277d663d0 |
|
@ -25,8 +25,12 @@ export const state = reactive({
|
|||
source.addEventListener("open", () => console.debug("opened event source"))
|
||||
source.addEventListener('message', event => console.log(event))
|
||||
source.addEventListener('TickAdded', event => {
|
||||
<<<<<<< Updated upstream
|
||||
console.log(event)
|
||||
const tick: Tick = JSON.parse(event.data)
|
||||
=======
|
||||
const tick: Tick = Tick.fromJSON(JSON.parse(event.data))
|
||||
>>>>>>> Stashed changes
|
||||
const tracks = this.tracks.map(track => {
|
||||
if (track.id === tick.track_id) {
|
||||
const ticks = track.ticks ?? []
|
||||
|
|
Loading…
Reference in a new issue