Bug 1078309: use a different database for each Fx Account. r=abr,paolo

This commit is contained in:
Mike de Boer
2014-10-09 13:11:24 +02:00
parent d1668ac3d9
commit 3b9b546733
7 changed files with 218 additions and 27 deletions

View File

@@ -625,7 +625,9 @@ loop.panel = (function(_, mozL10n) {
_onStatusChanged: function() {
var profile = navigator.mozLoop.userProfile;
if (profile != this.state.userProfile) {
var currUid = this.state.userProfile ? this.state.userProfile.uid : null;
var newUid = profile ? profile.uid : null;
if (currUid != newUid) {
// On profile change (login, logout), switch back to the default tab.
this.selectTab("call");
}