mirror of
https://github.com/zhigang1992/docsify.git
synced 2026-03-29 22:38:42 +08:00
chore: tweaks code
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
const fixedPath = location.href.replace('/-/', '/#/')
|
||||
if (fixedPath != location.href) {
|
||||
if (fixedPath !== location.href) {
|
||||
location.href = fixedPath
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user