summaryrefslogtreecommitdiffstats
path: root/application/basilisk/base/content/aboutaccounts/aboutaccounts.js
diff options
context:
space:
mode:
Diffstat (limited to 'application/basilisk/base/content/aboutaccounts/aboutaccounts.js')
-rw-r--r--application/basilisk/base/content/aboutaccounts/aboutaccounts.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/application/basilisk/base/content/aboutaccounts/aboutaccounts.js b/application/basilisk/base/content/aboutaccounts/aboutaccounts.js
index a05c1ea75..f03029b1d 100644
--- a/application/basilisk/base/content/aboutaccounts/aboutaccounts.js
+++ b/application/basilisk/base/content/aboutaccounts/aboutaccounts.js
@@ -450,14 +450,9 @@ function migrateToDevEdition(urlParams) {
try {
defaultProfilePath = window.getDefaultProfilePath();
} catch (e) {} // no default profile.
- let migrateSyncCreds = false;
- if (defaultProfilePath) {
- try {
- migrateSyncCreds = Services.prefs.getBoolPref("identity.fxaccounts.migrateToDevEdition");
- } catch (e) {}
- }
+ let migrateSyncCreds = Services.prefs.getBoolPref("identity.fxaccounts.migrateToDevEdition", false);
- if (!migrateSyncCreds) {
+ if (!defaultProfilePath || !migrateSyncCreds) {
return Promise.resolve(false);
}