autoconfig: get_firefox_version: remove try…catch

There is a try…catch around main() now, which logs the exception and
fails with an error that is visible for the user.
This commit is contained in:
Oliver Smith 2023-04-06 21:11:16 +00:00
parent 77e8101caf
commit 2405aabd4c
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -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() {