mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-14 20:30:01 +01:00
Parse info.json to set module defaults (#650)
* changes * changes * changes * changes * changes * changes
This commit is contained in:
9
src/util/getDefaults.js
Normal file
9
src/util/getDefaults.js
Normal file
@@ -0,0 +1,9 @@
|
||||
module.exports = function(info){
|
||||
var defaults = {};
|
||||
for (var key in info.inputs) {
|
||||
if (info.inputs.hasOwnProperty(key)) {
|
||||
defaults[key] = info.inputs[key].default;
|
||||
}
|
||||
}
|
||||
return defaults;
|
||||
}
|
||||
Reference in New Issue
Block a user