chore: tweaks code

This commit is contained in:
qingwei.li 2017-11-30 09:43:25 +08:00
parent 041b33e967
commit 0e693fcda2

View File

@ -1,5 +1,5 @@
const fixedPath = location.href.replace('/-/', '/#/')
if (fixedPath != location.href) {
if (fixedPath !== location.href) {
location.href = fixedPath
}