Sfoglia il codice sorgente

removed pointless code

Gildas 7 anni fa
parent
commit
691032502f
1 ha cambiato i file con 1 aggiunte e 5 eliminazioni
  1. 1 5
      lib/fetch/bg/fetch.js

+ 1 - 5
lib/fetch/bg/fetch.js

@@ -35,11 +35,7 @@
 			}
 			send(response);
 		};
-		try {
-			onRequest(request, sendResponse);
-		} catch (error) {
-			sendResponse({ error });
-		}
+		onRequest(request, sendResponse);
 		return true;
 	});