git ssb

0+

ev / microbay



forked from Dominic / patchbay

Commit e257f2546f229a035921db80e8d18ba65b25c615

use a way smaller mime module

Dominic Tarr committed on 7/30/2016, 3:31:31 AM
Parent: f7ca54c0c9db01f4eb92a59c6b61eda900f89e9f

Files changed

modules/file-input.jschanged
modules/file-input.jsView
@@ -1,8 +1,8 @@
11 var u = require('../util')
22 var h = require('hyperscript')
33 var pull = require('pull-stream')
4-var mime = require('mime-types')
4+var mime = require('simple-mime')('application/octect-stream')
55 var split = require('split-buffer')
66
77 var plugs = require('../plugs')
88
@@ -22,9 +22,9 @@
2222 onAdded({
2323 link: blob,
2424 name: file.name,
2525 size: reader.result.length || reader.result.byteLength,
26- type: mime.contentType(file.name)
26+ type: mime(file.name)
2727 })
2828
2929 })
3030 )
@@ -33,8 +33,4 @@
3333 }
3434 })
3535 }
3636
37-
38-
39-
40-

Built with git-ssb-web