Completely block <object> tags in message bodies (#48)

This commit is contained in:
Ben Gotow 2017-10-10 16:24:05 -07:00
parent f82c88367b
commit 6334b9d010
2 changed files with 4 additions and 1 deletions

View file

@ -77,6 +77,10 @@ export default class File extends Model {
}
displayFileSize(bytes = this.size) {
if (bytes === 0) {
return 'Empty';
}
const units = ['B', 'KB', 'MB', 'GB'];
let threshold = 1000000000;
let idx = units.length - 1;

View file

@ -246,7 +246,6 @@ const Preset = {
'meta',
'meter',
'nav',
'object',
'ol',
'optgroup',
'option',