mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-01 13:14:16 +08:00
Completely block <object>
tags in message bodies (#48)
This commit is contained in:
parent
f82c88367b
commit
6334b9d010
2 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -246,7 +246,6 @@ const Preset = {
|
|||
'meta',
|
||||
'meter',
|
||||
'nav',
|
||||
'object',
|
||||
'ol',
|
||||
'optgroup',
|
||||
'option',
|
||||
|
|
Loading…
Reference in a new issue