Skip to content

Commit

Permalink
Meta: fix link-fixup to work when there's no fragment
Browse files Browse the repository at this point in the history
Also do nothing if the path doesn't start with /multipage/ or /dev/.

Helps with #2934.
  • Loading branch information
zcorpan authored and annevk committed Aug 19, 2017
1 parent df05a09 commit cb8405e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion link-fixup.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(function () {
'use strict';
if (window.location.hash.length < 1) {
if (!(/^\/(dev|multipage)\//.test(window.location.pathname))) {
return;
}

Expand Down

0 comments on commit cb8405e

Please sign in to comment.