macdonst/callback-js — comment on commit 743ae59bd436eaa11a5311d8ae86e40dc32eae59
File: lib/plugin/capture.js line 20
By filmaj:

Here, as well as at lines 31 and 42, instead of using the global `navigator.device.capture` you can instead use `module.exports` (@gtanner showed me this trick - although I'm not sure why `this` won't work - enlighten me Mr. Tanner!)