mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-12 09:41:11 +00:00
UI: collapse app-settings guard-return boilerplate
This commit is contained in:
@@ -442,10 +442,9 @@ export function setTabFromRoute(host: SettingsHost, next: Tab) {
|
||||
|
||||
function updateBrowserHistory(url: URL, replace: boolean) {
|
||||
if (replace) {
|
||||
window.history.replaceState({}, "", url.toString());
|
||||
return;
|
||||
return window.history.replaceState({}, "", url.toString());
|
||||
}
|
||||
window.history.pushState({}, "", url.toString());
|
||||
return window.history.pushState({}, "", url.toString());
|
||||
}
|
||||
|
||||
function applyTabSelection(
|
||||
|
||||
Reference in New Issue
Block a user