ソースを参照

website: enable facebook in example (#2076)

Ifedapo .A. Olarewaju 5 年 前
コミット
dc3b46039c

+ 0 - 8
website/src/examples/dashboard/app.html

@@ -100,13 +100,5 @@
     })
   })
 
-  // temp hack to only show facebook when the url is:
-  // https://uppy.io/examples/dashboard/#enable-facebook
-  const facebookCheckbox = document.getElementById('facebook-checkbox')
-  facebookCheckbox.style.display = 'none'
-  if (document.location.hash === '#enable-facebook') {
-    facebookCheckbox.style.display = 'inline-block'
-  }
-
   toggleModalBtn()
 </script>

+ 5 - 7
website/src/examples/transloadit/app.es6

@@ -99,13 +99,11 @@ function initUppy (opts = {}) {
       companionUrl: 'https://api2.transloadit.com/companion',
       companionAllowedHosts: Transloadit.COMPANION_PATTERN
     })
-    if (document.location.hash === '#enable-facebook') {
-      uppy.use(Facebook, {
-        target: Dashboard,
-        companionUrl: COMPANION
-      })
-    }
-    uppy.use(Webcam, { target: Dashboard, modes: ['picture'] })
+    .use(Facebook, {
+      target: Dashboard,
+      companionUrl: COMPANION
+    })
+    .use(Webcam, { target: Dashboard, modes: ['picture'] })
 
   uppy
     .on('transloadit:result', (stepName, result) => {