Browse Source

Moved googledrive thing inside modal constructor.

Harry Hedger 9 years ago
parent
commit
0e93d95454
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/plugins/Modal.js

+ 1 - 3
src/plugins/Modal.js

@@ -2,12 +2,10 @@ import Plugin from './Plugin'
 import { ModalTemplate } from './templates'
 import Drive from './GoogleDrive'
 
-let GoogleDrive = new Drive()
-
 export default class Modal extends Plugin {
   constructor (core, opts) {
     super(core, opts)
-
+    let GoogleDrive = new Drive()
     this.providers = [{ name: 'Local' }, { name: 'Google Drive', connect: GoogleDrive.connect }]
     this.type = 'something'
     this.connect = this.connect.bind(this)