|
@@ -83,6 +83,18 @@ function initUppy (opts = {}) {
|
|
return { params, signature }
|
|
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
|
|
uppy
|
|
.use(Transloadit, {
|
|
.use(Transloadit, {
|
|
getAssemblyOptions,
|
|
getAssemblyOptions,
|
|
@@ -94,11 +106,7 @@ function initUppy (opts = {}) {
|
|
target: '#uppy-dashboard-container',
|
|
target: '#uppy-dashboard-container',
|
|
note: 'Images only, 1–2 files, up to 1 MB'
|
|
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, {
|
|
.use(Facebook, {
|
|
target: Dashboard,
|
|
target: Dashboard,
|
|
companionUrl: COMPANION
|
|
companionUrl: COMPANION
|