mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
spelling: fragments
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
This commit is contained in:
parent
b6c5ed6930
commit
272de142b4
@ -81,7 +81,7 @@ export class Preferences extends React.Component {
|
|||||||
const fragment = hash.slice(1); // hash is /^(#\w.)?$/
|
const fragment = hash.slice(1); // hash is /^(#\w.)?$/
|
||||||
|
|
||||||
if (fragment) {
|
if (fragment) {
|
||||||
// ignore empty framents
|
// ignore empty fragments
|
||||||
document.getElementById(fragment)?.scrollIntoView();
|
document.getElementById(fragment)?.scrollIntoView();
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user