Rename gateway proxy labels and update window title
This commit is contained in:
@@ -25,6 +25,10 @@ function App() {
|
||||
return () => clearInterval(timer);
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
if (state?.mode) document.title = state.mode === 'gateway' ? 'Gateway' : 'Proxy';
|
||||
}, [state?.mode]);
|
||||
|
||||
async function run(action) {
|
||||
setBusy(true);
|
||||
setError('');
|
||||
|
||||
Reference in New Issue
Block a user