mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-22 03:37:04 +00:00
Oops
This commit is contained in:
1 parent
8efea112b4
commit
90b504d67d
1 file changed
+1
-1
@@ -85,7 +85,7 @@ const BrewRenderer = (props)=>{
|
|||||||
if (pageIdRegex.test(locationHash)) {
|
if (pageIdRegex.test(locationHash)) {
|
||||||
// Extract page number from the ID
|
// Extract page number from the ID
|
||||||
const pageNumber = parseInt(locationHash.slice(2));
|
const pageNumber = parseInt(locationHash.slice(2));
|
||||||
scrollToPage(pageNumber+1);
|
scrollToPage(pageNumber-1);
|
||||||
} else {
|
} else {
|
||||||
// Treat it as an element ID
|
// Treat it as an element ID
|
||||||
const elementId = locationHash.slice(1); // Remove the leading '#'
|
const elementId = locationHash.slice(1); // Remove the leading '#'
|
||||||
|
|||||||
Reference in new issue
Block a user