소스 검색

removed obsolete test

Gildas 7 년 전
부모
커밋
bd7f9125ed
1개의 변경된 파일1개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 5
      lib/browser-polyfill/chrome-browser-polyfill.js

+ 1 - 5
lib/browser-polyfill/chrome-browser-polyfill.js

@@ -18,15 +18,11 @@
  *   along with SingleFile.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-/* global navigator */
-
 (() => {
 
-	const isChrome = navigator.userAgent.includes("Chrome");
-
 	const FEATURE_TESTS = {};
 
-	if (isChrome && !this.browser && this.chrome) {
+	if (!this.browser && this.chrome) {
 		const nativeAPI = this.chrome;
 		this.__defineGetter__("browser", () => ({
 			browserAction: {