Skip to content

Commit

Permalink
Rename window.events to Whisper events
Browse files Browse the repository at this point in the history
// FREEBIE
  • Loading branch information
liliakai committed Apr 13, 2017
1 parent fcff07d commit 3f05c8f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions js/background.js
Expand Up @@ -43,7 +43,7 @@
return -1;
}
};
window.events = _.clone(Backbone.Events);
Whisper.events = _.clone(Backbone.Events);
var accountManager;
window.getAccountManager = function() {
if (!accountManager) {
Expand All @@ -58,7 +58,7 @@
}
Whisper.Registration.markDone();
console.log("dispatching registration event");
events.trigger('registration_done');
Whisper.events.trigger('registration_done');
});
}
return accountManager;
Expand All @@ -76,7 +76,7 @@
}

console.log("listening for registration events");
events.on('registration_done', function() {
Whisper.events.on('registration_done', function() {
console.log("handling registration event");
extension.keepAwake();
init(true);
Expand All @@ -86,9 +86,9 @@
openInbox();
}

Whisper.WallClockListener.init(events);
Whisper.RotateSignedPreKeyListener.init(events);
Whisper.ExpiringMessagesListener.init(events);
Whisper.WallClockListener.init(Whisper.events);
Whisper.RotateSignedPreKeyListener.init(Whisper.events);
Whisper.ExpiringMessagesListener.init(Whisper.events);
});

window.getSyncRequest = function() {
Expand Down

0 comments on commit 3f05c8f

Please sign in to comment.