2015-09-07 14:53:43 -07:00
|
|
|
/*
|
|
|
|
* vim: ts=4:sw=4:expandtab
|
2014-05-04 02:34:13 -04:00
|
|
|
*/
|
2014-10-10 16:58:34 -07:00
|
|
|
;(function() {
|
2015-03-06 11:43:53 -08:00
|
|
|
'use strict';
|
2015-05-12 17:07:13 -07:00
|
|
|
extension.windows.getBackground(function(bg) {
|
2015-11-02 19:19:30 -08:00
|
|
|
bg.storage.onready(function() {
|
|
|
|
$(function() {
|
2017-04-12 18:43:00 -07:00
|
|
|
var Whisper = bg.Whisper;
|
|
|
|
var installView = new Whisper.InstallView({
|
|
|
|
el: $('#install')
|
2015-05-12 17:07:13 -07:00
|
|
|
});
|
2017-04-12 18:43:00 -07:00
|
|
|
if (Whisper.Registration.everDone()) {
|
|
|
|
installView.selectStep(3);
|
|
|
|
installView.hideDots();
|
2015-11-02 19:19:30 -08:00
|
|
|
}
|
2017-04-12 18:43:00 -07:00
|
|
|
installView.$el.show();
|
2017-04-21 13:21:18 -07:00
|
|
|
Whisper.events.on('contactsync:begin', installView.showSync, installView);
|
2017-04-12 18:43:00 -07:00
|
|
|
Whisper.events.on('contactsync', function() {
|
2017-04-21 13:21:18 -07:00
|
|
|
installView.close();
|
2017-04-12 18:43:00 -07:00
|
|
|
bg.openInbox();
|
|
|
|
window.close();
|
|
|
|
});
|
2015-04-01 13:08:09 -07:00
|
|
|
});
|
2015-05-11 14:22:15 -07:00
|
|
|
});
|
2014-10-10 16:58:34 -07:00
|
|
|
});
|
|
|
|
})();
|