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