TGUI Update

This commit is contained in:
Heroman3003
2023-06-01 09:37:52 +10:00
committed by CHOMPStation2
parent 94f7414bca
commit 7144410a11
365 changed files with 12773 additions and 4100 deletions

View File

@@ -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');