Skip to content
Snippets Groups Projects
Unverified Commit 2405aabd authored by Oliver Smith's avatar Oliver Smith
Browse files

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.
parent 77e8101c
No related branches found
No related tags found
No related merge requests found
......@@ -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() {
......
  • Administrator @root

    mentioned in commit aaa603fa

    By Oliver Smith on 2023-04-18T07:22:01

    · Imported

    mentioned in commit aaa603fa

    By Oliver Smith on 2023-04-18T07:22:01

    Edited by Ghost User
    Toggle commit list
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment