MCPcopy Create free account
hub / github.com/bwasti/mebm / addFile

Method addFile

script.js:1366–1375  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

1364 }
1365
1366 addFile(file) {
1367 if (file.type.indexOf('video') >= 0) {
1368 this.add(new AudioLayer(file));
1369 return this.add(new VideoLayer(file));
1370 } else if (file.type.indexOf('image') >= 0) {
1371 return this.add(new ImageLayer(file));
1372 } else if (file.type.indexOf('audio') >= 0) {
1373 return this.add(new AudioLayer(file));
1374 }
1375 }
1376
1377 async addURI(uri) {
1378 // safari has a bug here

Callers 3

addURIMethod · 0.95
script.jsFile · 0.80
uploadFunction · 0.80

Calls 1

addMethod · 0.95

Tested by

no test coverage detected