diff --git a/src/mobile-config-autoconfig.js b/src/mobile-config-autoconfig.js index 6f1f4e3..68a6bb7 100644 --- a/src/mobile-config-autoconfig.js +++ b/src/mobile-config-autoconfig.js @@ -71,7 +71,12 @@ function log_obj(obj) { } function get_firefox_version() { - return Services.appinfo.lastAppVersion.split(".")[0]; + try { + return Services.appinfo.lastAppVersion.split(".")[0]; + } catch(e) { + log("Couldn't get Firefox version (expected on first start): " + e); + return 0; + } } function get_firefox_version_previous() {