Polish client duration and tooltip interactions
This commit is contained in:
@@ -31,7 +31,12 @@ function App() {
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
if (state?.mode) document.title = state.mode === 'gateway' ? 'Harbor Gateway' : 'Harbor Connect';
|
||||
if (!state?.mode) return;
|
||||
const isGateway = state.mode === 'gateway';
|
||||
document.title = isGateway ? 'Harbor Gateway' : 'Harbor Connect';
|
||||
document.getElementById('harbor-favicon').href = isGateway
|
||||
? '/harbor-gateway.svg'
|
||||
: '/harbor-connect.svg';
|
||||
}, [state?.mode]);
|
||||
|
||||
async function run(action) {
|
||||
|
||||
Reference in New Issue
Block a user