Commit e257f2546f229a035921db80e8d18ba65b25c615
use a way smaller mime module
Dominic Tarr committed on 7/30/2016, 3:31:31 AMParent: f7ca54c0c9db01f4eb92a59c6b61eda900f89e9f
Files changed
modules/file-input.js | changed |
modules/file-input.js | ||
---|---|---|
@@ -1,8 +1,8 @@ | ||
1 | 1 | var u = require('../util') |
2 | 2 | var h = require('hyperscript') |
3 | 3 | var pull = require('pull-stream') |
4 | -var mime = require('mime-types') | |
4 | +var mime = require('simple-mime')('application/octect-stream') | |
5 | 5 | var split = require('split-buffer') |
6 | 6 | |
7 | 7 | var plugs = require('../plugs') |
8 | 8 | |
@@ -22,9 +22,9 @@ | ||
22 | 22 | onAdded({ |
23 | 23 | link: blob, |
24 | 24 | name: file.name, |
25 | 25 | size: reader.result.length || reader.result.byteLength, |
26 | - type: mime.contentType(file.name) | |
26 | + type: mime(file.name) | |
27 | 27 | }) |
28 | 28 | |
29 | 29 | }) |
30 | 30 | ) |
@@ -33,8 +33,4 @@ | ||
33 | 33 | } |
34 | 34 | }) |
35 | 35 | } |
36 | 36 | |
37 | - | |
38 | - | |
39 | - | |
40 | - |
Built with git-ssb-web