mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-27 20:27:13 +00:00
website: optionally point to companion with graph instagram API
This commit is contained in:
parent
1938f16fd8
commit
1096c7e6af
1 changed files with 13 additions and 5 deletions
|
|
@ -83,6 +83,18 @@ function initUppy (opts = {}) {
|
|||
return { params, signature }
|
||||
}
|
||||
|
||||
let instagramOptions = {
|
||||
target: Dashboard,
|
||||
companionUrl: 'https://api2.transloadit.com/companion',
|
||||
companionAllowedHosts: Transloadit.COMPANION_PATTERN
|
||||
}
|
||||
if (document.location.hash === '#enable-new-instagram') {
|
||||
instagramOptions = {
|
||||
target: Dashboard,
|
||||
companionUrl: 'https://intense-meadow-61813.herokuapp.com/'
|
||||
}
|
||||
}
|
||||
|
||||
uppy
|
||||
.use(Transloadit, {
|
||||
getAssemblyOptions,
|
||||
|
|
@ -94,11 +106,7 @@ function initUppy (opts = {}) {
|
|||
target: '#uppy-dashboard-container',
|
||||
note: 'Images only, 1–2 files, up to 1 MB'
|
||||
})
|
||||
.use(Instagram, {
|
||||
target: Dashboard,
|
||||
companionUrl: 'https://api2.transloadit.com/companion',
|
||||
companionAllowedHosts: Transloadit.COMPANION_PATTERN
|
||||
})
|
||||
.use(Instagram, instagramOptions)
|
||||
.use(Facebook, {
|
||||
target: Dashboard,
|
||||
companionUrl: COMPANION
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue