Skip to content

Commit 7e18892

Browse files
committed
fix(html5): fixed linting issues (vuejs#3555)
1 parent d976211 commit 7e18892

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/history/html5.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ export class HTML5History extends History {
8888
export function getLocation (base: string): string {
8989
let path = window.location.pathname
9090
// base="/a" shouldn't turn path="/app" into "/a/pp" https://github.com/vuejs/vue-router/issues/3555
91-
if (base && ((path.toLowerCase() === base.toLowerCase())
92-
|| (path.toLowerCase().indexOf(cleanPath(base.toLowerCase() + "/")) === 0))) {
91+
if (base && ((path.toLowerCase() === base.toLowerCase()) ||
92+
(path.toLowerCase().indexOf(cleanPath(base.toLowerCase() + '/')) === 0))) {
9393
path = path.slice(base.length)
9494
}
9595
return (path || '/') + window.location.search + window.location.hash

0 commit comments

Comments
 (0)