signal-desktop/js/options.js

26 lines
744 B
JavaScript
Raw Normal View History

/*
* vim: ts=4:sw=4:expandtab
*/
2014-10-10 23:58:34 +00:00
;(function() {
'use strict';
extension.windows.getBackground(function(bg) {
bg.storage.onready(function() {
$(function() {
var Whisper = bg.Whisper;
var installView = new Whisper.InstallView({
el: $('#install')
});
if (Whisper.Registration.everDone()) {
installView.selectStep(3);
installView.hideDots();
}
installView.$el.show();
Whisper.events.on('contactsync', function() {
bg.openInbox();
window.close();
});
});
2015-05-11 21:22:15 +00:00
});
2014-10-10 23:58:34 +00:00
});
})();