DRY up registration event callbacks

This was just a special case of the extension.on/trigger interface.
This commit is contained in:
lilia 2014-12-19 13:59:18 -08:00
parent e68720f07f
commit 5762e59c41
3 changed files with 9 additions and 12 deletions

View file

@ -38,6 +38,6 @@
}
};
textsecure.registration.addListener(init);
extension.on('registration_done', init);
init();
})();