DRY up registration event callbacks
This was just a special case of the extension.on/trigger interface.
This commit is contained in:
parent
e68720f07f
commit
5762e59c41
3 changed files with 9 additions and 12 deletions
|
@ -38,6 +38,6 @@
|
|||
}
|
||||
};
|
||||
|
||||
textsecure.registration.addListener(init);
|
||||
extension.on('registration_done', init);
|
||||
init();
|
||||
})();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue