mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-09-23 20:32:56 +00:00
Remove live reload functionality
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
import 'core-js/es/string/to-well-formed.js'; // Polyfill for older browsers
|
import 'core-js/es/string/to-well-formed.js'; // Polyfill for older browsers
|
||||||
import './homebrew.less';
|
import './homebrew.less';
|
||||||
import React, { useEffect } from 'react';
|
|
||||||
import { BrowserRouter as Router, Routes, Route, useParams, useSearchParams } from 'react-router';
|
import { BrowserRouter as Router, Routes, Route, useParams, useSearchParams } from 'react-router';
|
||||||
|
|
||||||
import { updateLocalStorage } from './utils/updateLocalStorage/updateLocalStorageKeys.js';
|
import { updateLocalStorage } from './utils/updateLocalStorage/updateLocalStorageKeys.js';
|
||||||
@@ -46,18 +45,6 @@ const Homebrew = (props)=>{
|
|||||||
global.config = config;
|
global.config = config;
|
||||||
global.enablev4 = enablev4;
|
global.enablev4 = enablev4;
|
||||||
|
|
||||||
useEffect(()=>{
|
|
||||||
const eventSource = new EventSource('/stream');
|
|
||||||
|
|
||||||
eventSource.addEventListener('message', (evt)=>{
|
|
||||||
const messageData = JSON.parse(evt.data);
|
|
||||||
|
|
||||||
if(messageData.eventType == 'initStream'){
|
|
||||||
console.log('window.location.reload()');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}, []);
|
|
||||||
|
|
||||||
const backgroundObject = ()=>{
|
const backgroundObject = ()=>{
|
||||||
if(config?.deployment || (config?.local && config?.development)) {
|
if(config?.deployment || (config?.local && config?.development)) {
|
||||||
const bgText = config?.deployment || 'Local';
|
const bgText = config?.deployment || 'Local';
|
||||||
|
|||||||
Reference in New Issue
Block a user