mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-15 20:52:41 +00:00
TGUI Update
This commit is contained in:
committed by
CHOMPStation2
parent
94f7414bca
commit
7144410a11
@@ -68,7 +68,10 @@ const serializeObject = (obj) => {
|
||||
}
|
||||
refs.push(value);
|
||||
// Error object
|
||||
const isError = value instanceof Error || (value.code && value.message && value.message.includes('Error'));
|
||||
// prettier-ignore
|
||||
const isError = value instanceof Error || (
|
||||
value.code && value.message && value.message.includes('Error')
|
||||
);
|
||||
if (isError) {
|
||||
return {
|
||||
__error__: true,
|
||||
@@ -132,7 +135,12 @@ const sendLogEntry = (level, ns, ...args) => {
|
||||
};
|
||||
|
||||
const setupHotReloading = () => {
|
||||
if (process.env.NODE_ENV !== 'production' && process.env.WEBPACK_HMR_ENABLED && window.WebSocket) {
|
||||
if (
|
||||
// prettier-ignore
|
||||
process.env.NODE_ENV !== 'production'
|
||||
&& process.env.WEBPACK_HMR_ENABLED
|
||||
&& window.WebSocket
|
||||
) {
|
||||
if (module.hot) {
|
||||
ensureConnection();
|
||||
sendLogEntry(0, null, 'setting up hot reloading');
|
||||
|
||||
Reference in New Issue
Block a user