mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 04:09:49 +00:00
@@ -8,6 +8,9 @@
|
||||
Whisper.FileSizeToast = Whisper.ToastView.extend({
|
||||
templateName: 'file-size-modal'
|
||||
});
|
||||
Whisper.UnsupportedFileTypeToast = Whisper.ToastView.extend({
|
||||
template: "Unsupported file type"
|
||||
});
|
||||
|
||||
Whisper.FileInputView = Backbone.View.extend({
|
||||
tagName: 'span',
|
||||
@@ -115,6 +118,12 @@
|
||||
this.oUrl = URL.createObjectURL(file);
|
||||
this.addThumb(this.oUrl);
|
||||
break;
|
||||
default:
|
||||
var toast = new Whisper.UnsupportedFileTypeToast();
|
||||
toast.$el.insertAfter(this.$el);
|
||||
toast.render();
|
||||
this.deleteFiles();
|
||||
break;
|
||||
}
|
||||
|
||||
this.autoScale(file).then(function(blob) {
|
||||
|
||||
Reference in New Issue
Block a user