diff options
Diffstat (limited to 'source/features/link-to-file-in-file-history.tsx')
-rw-r--r-- | source/features/link-to-file-in-file-history.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/features/link-to-file-in-file-history.tsx b/source/features/link-to-file-in-file-history.tsx index c2322fb3..f7d848d8 100644 --- a/source/features/link-to-file-in-file-history.tsx +++ b/source/features/link-to-file-in-file-history.tsx @@ -4,11 +4,11 @@ import FileIcon from 'octicon/file.svg'; import * as pageDetect from 'github-url-detection'; import features from '.'; -import parseRoute from '../github-helpers/parse-route'; +import GitHubURL from '../github-helpers/github-url'; import {groupSiblings} from '../github-helpers/group-buttons'; function init(): void | false { - const {filePath} = parseRoute(location.pathname); + const {filePath} = new GitHubURL(location.href); if (!filePath) { return false; } |