Compare commits

...

2 Commits

Author SHA1 Message Date
b58bc6254a Don't sent access token in url 2021-10-20 14:12:19 +02:00
d13ecbc43c Hide first event source message 2021-10-20 14:12:05 +02:00

View File

@ -19,7 +19,7 @@ export default new Vuex.Store({
searchPopupIsOpen: false,
searchItems: [],
eventSource: null,
globalTimeline: {items: [{name: 'Testing the global timeline'}]},
globalTimeline: {items: []},
debug: false,
debugItem: {},
debugVisible: false
@ -74,10 +74,10 @@ export default new Vuex.Store({
if (state.eventSource !== null) {
state.eventSource.close()
}
state.eventSource = new EventSource(state.microsubEndpoint + url + "&access_token=" + state.access_token, {
// headers: {
// 'Authorization': 'Bearer ' + this.state.access_token
// }
state.eventSource = new EventSource(state.microsubEndpoint + url, {
headers: {
'Authorization': 'Bearer ' + this.state.access_token
}
})
state.eventSource.addEventListener('open', evt => {
// eslint-disable-next-line