Harry Hedger 9 anni fa
parent
commit
6a8bf6abc9
1 ha cambiato i file con 1 aggiunte e 3 eliminazioni
  1. 1 3
      src/plugins/GoogleDrive.js

+ 1 - 3
src/plugins/GoogleDrive.js

@@ -6,7 +6,7 @@ export default class Google extends Plugin {
     super(core, opts)
     this.type = 'selecter'
     this.files = []
-
+    this.authUrl = 'http://localhost:3020/connect/google'
     // set default options
     const defaultOptions = {}
 
@@ -40,7 +40,6 @@ export default class Google extends Plugin {
       if (res.status >= 200 && res.status <= 300) {
         return res.json().then(data => {
           this.isAuthenticated = data.isAuthenticated
-          this.authUrl = data.authUrl
         })
       } else {
         let error = new Error(res.statusText)
@@ -122,7 +121,6 @@ export default class Google extends Plugin {
   }
 
   renderAuth () {
-    console.log('RenderAuth')
     return `<div><h1>Authenticate With Google Drive</h1><a href=${ this.authUrl || '#' }>Authenticate</a></div>`
   }