diff options
author | 2020-05-28 19:00:10 +0200 | |
---|---|---|
committer | 2020-05-28 19:00:10 +0200 | |
commit | 7589633720493550e359468ffdb4294858b74646 (patch) | |
tree | 9574de3d8a560ff0726fdb1070d561bc7e5d867a /source/features/link-to-file-in-file-history.tsx | |
parent | 2235c23dedef9f5ef91cc07c53175e28e5f64b6d (diff) | |
download | refined-github-7589633720493550e359468ffdb4294858b74646.tar.gz refined-github-7589633720493550e359468ffdb4294858b74646.tar.zst refined-github-7589633720493550e359468ffdb4294858b74646.zip |
Meta: improve GitHub URL parser (#3138)
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; } |