From 0b204c638f62116f3d34d64762966ad5683b194f Mon Sep 17 00:00:00 2001
From: Federico Brigante <github@bfred.it>
Date: Mon, 16 Dec 2019 00:47:51 +0700
Subject: Small meta changes (#2626)

---
 source/features/embed-gist-inline.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'source/features/embed-gist-inline.tsx')

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
-- 
cgit v1.2.3

