diff --git a/app/src/flux/models/file.es6 b/app/src/flux/models/file.es6 index 4857b4e63..05d66c924 100644 --- a/app/src/flux/models/file.es6 +++ b/app/src/flux/models/file.es6 @@ -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; diff --git a/app/src/services/sanitize-transformer.es6 b/app/src/services/sanitize-transformer.es6 index 5a650fa6c..3c22fa82e 100644 --- a/app/src/services/sanitize-transformer.es6 +++ b/app/src/services/sanitize-transformer.es6 @@ -246,7 +246,6 @@ const Preset = { 'meta', 'meter', 'nav', - 'object', 'ol', 'optgroup', 'option',