Compare commits
2 Commits
fd876591ab
...
b58bc6254a
| Author | SHA1 | Date | |
|---|---|---|---|
| b58bc6254a | |||
| d13ecbc43c |
10
src/store.js
10
src/store.js
|
|
@ -19,7 +19,7 @@ export default new Vuex.Store({
|
||||||
searchPopupIsOpen: false,
|
searchPopupIsOpen: false,
|
||||||
searchItems: [],
|
searchItems: [],
|
||||||
eventSource: null,
|
eventSource: null,
|
||||||
globalTimeline: {items: [{name: 'Testing the global timeline'}]},
|
globalTimeline: {items: []},
|
||||||
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 + "&access_token=" + state.access_token, {
|
state.eventSource = new EventSource(state.microsubEndpoint + url, {
|
||||||
// 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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user