1
0
Эх сурвалжийг харах

removed code related to Edge

Gildas 7 жил өмнө
parent
commit
ac15b20aaf

+ 2 - 7
lib/browser-polyfill/custom-browser-polyfill.js

@@ -23,17 +23,12 @@
 (() => {
 
 	const isChrome = navigator.userAgent.includes("Chrome");
-	const isEdge = navigator.userAgent.includes("Edge");
 
 	const FEATURE_TESTS = {};
 
 	let browserAPI;
-	if ((isChrome && !this.browser) || isEdge) {
-		if (isEdge) {
-			browserAPI = this.browser;
-		} else {
-			browserAPI = this.chrome;
-		}
+	if (isChrome && !this.browser) {
+		browserAPI = this.chrome;
 		this.__defineGetter__("browser", () => ({
 			browserAction: {
 				onClicked: {