Skip to content

Commit

Permalink
Get FS by name
Browse files Browse the repository at this point in the history
  • Loading branch information
Kagami committed Aug 21, 2015
1 parent 16007d7 commit 862ff55
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions build/pre.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,8 @@ function __ffmpegjs(__ffmpegjs_opts) {

Module["preRun"] = function() {
(__ffmpegjs_opts["mounts"] || []).forEach(function(mount) {
var fs;
if (mount["type"] == "NODEFS") {
fs = NODEFS;
} else if (mount["type"] == "IDBFS") {
fs = IDBFS;
} else if (mount["type"] == "WORKERFS") {
fs = WORKERFS;
} else {
var fs = FS.filesystems[mount["type"]];
if (!fs) {
throw new Error("Bad mount type");
}
var mountpoint = mount["mountpoint"];
Expand Down

0 comments on commit 862ff55

Please sign in to comment.