Przeglądaj źródła

refactor: non arrow functions for const

Ifedapo Olarewaju 8 lat temu
rodzic
commit
364acb8b6a
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/generic-provider-views/index.js

+ 1 - 1
src/generic-provider-views/index.js

@@ -262,7 +262,7 @@ module.exports = class View {
     const link = `${this.plugin.opts.host}/connect/${this.Provider.authProvider}?state=${authState}`
     const link = `${this.plugin.opts.host}/connect/${this.Provider.authProvider}?state=${authState}`
 
 
     const authWindow = window.open(link, '_blank')
     const authWindow = window.open(link, '_blank')
-    const checkAuth = () => {
+    const checkAuth = function () {
       let authWindowUrl
       let authWindowUrl
 
 
       try {
       try {