Browse Source

Fix Dropbox example

Kevin van Zonneveld 9 years ago
parent
commit
22cd151c32
2 changed files with 7 additions and 7 deletions
  1. 5 5
      src/plugins/Dropbox.js
  2. 2 2
      src/plugins/index.js

+ 5 - 5
src/plugins/Dropbox.js

@@ -1,8 +1,10 @@
+import Utils from '../core/Utils';
+import TransloaditPlugin from './TransloaditPlugin';
 import request from 'superagent';
 
-class DropboxPlugin {
-  constructor() {
-    this.name = 'DropboxPlugin';
+export default class Dropbox extends TransloaditPlugin {
+  constructor(core, opts) {
+    super(core, opts);
     this.type = 'selecter';
     this.authenticate = this.authenticate.bind(this);
     this.connect = this.connect.bind(this);
@@ -98,5 +100,3 @@ class DropboxPlugin {
     })
   }
 }
-
-export default new DropboxPlugin()

+ 2 - 2
src/plugins/index.js

@@ -1,12 +1,12 @@
 import TransloaditPlugin from './TransloaditPlugin'
 import DragDrop from './DragDrop'
-import DropboxPlugin from './Dropbox'
+import Dropbox from './Dropbox'
 import TransloaditBasic from './TransloaditBasic'
 import Tus10 from './Tus10'
 
 export default {
   TransloaditPlugin,
-  DropboxPlugin,
+  Dropbox,
   DragDrop,
   TransloaditBasic,
   Tus10