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