Compare commits

..

No commits in common. "b58bc6254a9b02a717fce8722f22a5c04ce8e461" and "fd876591abe31af281afc5639ed426f633d61846" have entirely different histories.

View File

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