Fix: backward detection
This commit is contained in:
parent
22748d0e18
commit
f167e62b86
|
@ -45,7 +45,8 @@ const router = (() => {
|
||||||
Send an empty string to remove the hash.
|
Send an empty string to remove the hash.
|
||||||
*/
|
*/
|
||||||
if (buffer.length > 1) {
|
if (buffer.length > 1) {
|
||||||
if (!hash && !buffer[buffer.length - 2].includes('#') || buffer[buffer.length - 2].endsWith(hash)) {
|
if (!hash && !buffer[buffer.length - 2].includes('#') ||
|
||||||
|
hash && buffer[buffer.length - 2].endsWith(hash)) {
|
||||||
history.back();
|
history.back();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user