From 2405aabd4c6afe6c0e3c0d4fb8c6ee52f615a3c5 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Thu, 6 Apr 2023 21:11:16 +0000 Subject: [PATCH] =?UTF-8?q?autoconfig:=20get=5Ffirefox=5Fversion:=20remove?= =?UTF-8?q?=20try=E2=80=A6catch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There is a try…catch around main() now, which logs the exception and fails with an error that is visible for the user. --- src/mobile-config-autoconfig.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/mobile-config-autoconfig.js b/src/mobile-config-autoconfig.js index f901efc..3e1663c 100644 --- a/src/mobile-config-autoconfig.js +++ b/src/mobile-config-autoconfig.js @@ -55,12 +55,7 @@ function log_obj(obj) { } function get_firefox_version() { - try { - return Services.appinfo.lastAppVersion.split(".")[0]; - } catch(e) { - log("Failed to get FF version: " + e); - return 0; - } + return Services.appinfo.lastAppVersion.split(".")[0]; } function get_firefox_version_previous() {