examples/transloadit/main.js
function openModal () {
  robodog.pick({
    restrictions: {
      allowedFileTypes: ['.png']
    },
    waitForEncoding: true,
    params: {
      auth: { key: TRANSLOADIT_KEY },
      template_id: TEMPLATE_ID
    },
    providers: [
      'webcam'
    ]
    // if providers need custom config
    // webcam: {
    //   option: 'whatever'
    // }
  }).then(console.log, console.error)
}
function openModal () {
  robodog.pick({
    restrictions: {
      allowedFileTypes: ['.png']
    },
    waitForEncoding: true,
    params: {
      auth: { key: TRANSLOADIT_KEY },
      template_id: TEMPLATE_ID
    },
    providers: [
      'webcam'
    ]
    // if providers need custom config
    // webcam: {
    //   option: 'whatever'
    // }
  }).then(console.log, console.error)
}
function openModal ( ) { robodog . pick ( { restrictions : { allowedFileTypes : [ '.png' ] } , waitForEncoding : true , params : { auth : { key : TRANSLOADIT_KEY } , template_id : TEMPLATE_ID } , providers : [ 'webcam' ] // if providers need custom config // webcam: { //   option: 'whatever' // } } ) . then ( console . log , console . error ) }
robodog.modal
robodog . modal