UI: collapse app-settings guard-return boilerplate

This commit is contained in:
joshavant
2026-04-09 19:27:34 -05:00
committed by Josh Avant
parent 7030bdb6ea
commit 1ba23d31c0

View File

@@ -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(