Skip to content

Commit cb8405e

Browse files
zcorpanannevk
authored andcommitted
Meta: fix link-fixup to work when there's no fragment
Also do nothing if the path doesn't start with /multipage/ or /dev/. Helps with whatwg#2934.
1 parent df05a09 commit cb8405e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

link-fixup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
(function () {
22
'use strict';
3-
if (window.location.hash.length < 1) {
3+
if (!(/^\/(dev|multipage)\//.test(window.location.pathname))) {
44
return;
55
}
66

0 commit comments

Comments
 (0)