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:
parent
77e8101caf
commit
2405aabd4c
1 changed files with 1 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
function get_firefox_version_previous() {
|
||||
|
|
Loading…
Reference in a new issue