mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-28 12:23:31 +01:00
Fix file inputs
As a chrome app we are obligated to use the fileSystem api, and must do so via the window in which we want to open the dialog.
This commit is contained in:
@@ -31,8 +31,14 @@
|
||||
|
||||
this.render();
|
||||
|
||||
this.appWindow = options.appWindow;
|
||||
new Whisper.WindowControlsView({
|
||||
appWindow: this.appWindow
|
||||
}).$el.appendTo(this.$('#header'));
|
||||
|
||||
this.fileInput = new Whisper.FileInputView({
|
||||
el: this.$('.attachments')
|
||||
el: this.$('.attachments'),
|
||||
window: this.appWindow.contentWindow
|
||||
});
|
||||
|
||||
this.view = new Whisper.MessageListView({
|
||||
@@ -41,10 +47,6 @@
|
||||
this.$('.discussion-container').append(this.view.el);
|
||||
this.view.render();
|
||||
|
||||
new Whisper.WindowControlsView({
|
||||
appWindow: options.appWindow
|
||||
}).$el.appendTo(this.$('#header'));
|
||||
|
||||
setTimeout(function() {
|
||||
this.view.scrollToBottom();
|
||||
}.bind(this), 10);
|
||||
|
||||
Reference in New Issue
Block a user