Merge pull request #1832 from MaxLeiter/media
Rename thumbnail/image option to more general `media`
This commit is contained in:
commit
b9f1b9fd4d
@ -44,7 +44,7 @@ userOptions = null;
|
||||
module.exports = options;
|
||||
|
||||
module.exports.shouldOpenMessagePreview = function(type) {
|
||||
return (options.links && type === "link") || (options.media && (type === "image" || type === "audio"));
|
||||
return type === "link" ? options.links : options.media;
|
||||
};
|
||||
|
||||
module.exports.initialize = () => {
|
||||
|
@ -74,8 +74,8 @@
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<label class="opt">
|
||||
<input type="checkbox" name="thumbnails">
|
||||
Auto-expand images
|
||||
<input type="checkbox" name="media">
|
||||
Auto-expand media
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
|
Loading…
Reference in New Issue
Block a user