mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Make getBackground async
This commit is contained in:
14
js/index.js
14
js/index.js
@@ -16,12 +16,14 @@
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
var bg = extension.windows.getBackground();
|
||||
|
||||
window.Whisper = window.Whisper || {};
|
||||
if (bg.textsecure.storage.user.getNumber() === undefined) {
|
||||
window.location = '/options.html';
|
||||
} else {
|
||||
new bg.Whisper.InboxView().$el.prependTo(bg.$('body',document));
|
||||
}
|
||||
|
||||
extension.windows.getBackground(function(bg) {
|
||||
if (bg.textsecure.storage.user.getNumber() === undefined) {
|
||||
window.location = '/options.html';
|
||||
} else {
|
||||
new bg.Whisper.InboxView().$el.prependTo(bg.$('body',document));
|
||||
}
|
||||
});
|
||||
}());
|
||||
|
||||
Reference in New Issue
Block a user