diff options
author | 2019-12-16 00:47:51 +0700 | |
---|---|---|
committer | 2019-12-16 00:47:51 +0700 | |
commit | 0b204c638f62116f3d34d64762966ad5683b194f (patch) | |
tree | 36ddff538ce853339f1ab395a299afb067bda253 /source/features/embed-gist-inline.tsx | |
parent | 5317a69cff0558709437dd0e1694cba5f07d467f (diff) | |
download | refined-github-0b204c638f62116f3d34d64762966ad5683b194f.tar.gz refined-github-0b204c638f62116f3d34d64762966ad5683b194f.tar.zst refined-github-0b204c638f62116f3d34d64762966ad5683b194f.zip |
Small meta changes (#2626)
Diffstat (limited to 'source/features/embed-gist-inline.tsx')
-rw-r--r-- | source/features/embed-gist-inline.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/features/embed-gist-inline.tsx b/source/features/embed-gist-inline.tsx index fbb594b5..931242a8 100644 --- a/source/features/embed-gist-inline.tsx +++ b/source/features/embed-gist-inline.tsx @@ -2,6 +2,7 @@ import React from 'dom-chef'; import domify from 'doma'; import select from 'select-dom'; import features from '../libs/features'; +import {isFirefox} from '../libs/utils'; const isGist = (link: HTMLAnchorElement): boolean => !link.pathname.includes('.') && // Exclude links to embed files @@ -57,7 +58,7 @@ features.add({ ], exclude: [ // https://github.com/sindresorhus/refined-github/issues/2022 - () => navigator.userAgent.includes('Firefox/') + () => isFirefox ], load: features.onAjaxedPages, init |