fix cmd + , not opening settings (#3694)
This commit is contained in:
@@ -1156,9 +1156,9 @@ export default function App() {
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (section && newView === 'settings') {
|
if (section && newView === 'settings') {
|
||||||
window.history.replaceState({}, '', `/settings?section=${section}`);
|
window.location.hash = `#/settings?section=${section}`;
|
||||||
} else {
|
} else {
|
||||||
window.history.replaceState({}, '', `/${newView}`);
|
window.location.hash = `#/${newView}`;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const urlParams = new URLSearchParams(window.location.search);
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
|
|||||||
Reference in New Issue
Block a user