diff options
author | 2019-11-03 00:58:39 +0800 | |
---|---|---|
committer | 2019-11-02 23:58:39 +0700 | |
commit | ca44b891c0872b73c46acd4fd4b9ed581b61bd52 (patch) | |
tree | f2ffe0ae0aecfc9e3750444da3fbf2b4ec925f0b /source/libs/utils.ts | |
parent | dfb8b35d8ab1df5c2cada2d088d5f45f64c9ebbe (diff) | |
download | refined-github-ca44b891c0872b73c46acd4fd4b9ed581b61bd52.tar.gz refined-github-ca44b891c0872b73c46acd4fd4b9ed581b61bd52.tar.zst refined-github-ca44b891c0872b73c46acd4fd4b9ed581b61bd52.zip |
Add `html-preview-link` feature (#2505)
Diffstat (limited to 'source/libs/utils.ts')
-rw-r--r-- | source/libs/utils.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/libs/utils.ts b/source/libs/utils.ts index e11a8071..b32247d5 100644 --- a/source/libs/utils.ts +++ b/source/libs/utils.ts @@ -144,3 +144,5 @@ export function reportBug(featureName: string, bugName: string): void { console.log('Find existing issues:\n' + String(issuesUrl)); console.log('Open new issue:\n' + String(newIssueUrl)); } + +export const isSingleHTMLFile = (): boolean => /\.html?$/.test(location.pathname); |