cadecairos/popcorn-maker — comment on commit 5228466f2b1728ccf6084456c3ec7ce7cde71519
File: butter/test/previewer/custom.js line 72
By secretrobotron:

Can we actually consolidate this? If createMediaTimeout doesn't need to happen, we can get rid of another needless reference to `link`.

Maybe send two separate error functions into prepareMedia, or just check the error type that's passed back in that error function.