mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
refactors, dynamic constants (lol)
This commit is contained in:
parent
755891710a
commit
d4553896af
25 changed files with 323 additions and 312 deletions
|
@ -2,7 +2,7 @@ import React from 'react'
|
|||
import io from 'socket.io-client'
|
||||
import linkifyString from 'linkify-string'
|
||||
|
||||
import constants from '../constants.json'
|
||||
import constants from '../constants'
|
||||
import LoadingIndicator from '../components/LoadingIndicator'
|
||||
import { queryClient } from '../pages/_app'
|
||||
import Header from '../components/header'
|
||||
|
@ -202,7 +202,7 @@ export default class Chat extends React.Component {
|
|||
return
|
||||
}
|
||||
// https://socket.io/docs/v4/handling-cors/#Configuration
|
||||
const socket = io(`${constants.apiUrl}`, {
|
||||
const socket = io(`${constants.chatUrl}`, {
|
||||
withCredentials: true,
|
||||
extraHeaders: {
|
||||
'qmining-chat': 'qmining-chat',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue