diff --git a/AABrowserAPI/TeamSetup.js b/AABrowserAPI/TeamSetup.js index 26fa7338f..fc452151f 100644 --- a/AABrowserAPI/TeamSetup.js +++ b/AABrowserAPI/TeamSetup.js @@ -524,7 +524,7 @@ const graphqlClient = require('graphql-client') const usersModuleAPI = graphqlClient({ - url: window.MASTER_APP_API + url: window.canvasApp.urlPrefix }); @@ -1013,7 +1013,7 @@ const graphqlClient = require('graphql-client') const usersModuleAPI = graphqlClient({ - url: window.MASTER_APP_API + url: window.canvasApp.urlPrefix }); diff --git a/TopSpace/Login.js b/TopSpace/Login.js index 357aa96ef..f5acb5855 100644 --- a/TopSpace/Login.js +++ b/TopSpace/Login.js @@ -21,9 +21,6 @@ function newLogin() { container.isDraggeable = false; container.isClickeable = true; - //window.MASTER_APP_API = 'https://app-api.advancedalgos.net/graphql'; - window.MASTER_APP_API = 'http://localhost:4100/graphql'; - let currentLabel; let userAuthorization; @@ -53,7 +50,7 @@ function newLogin() { const apolloClient = new Apollo.lib.ApolloClient({ networkInterface: Apollo.lib.createNetworkInterface({ - uri: window.MASTER_APP_API, + uri: window.canvasApp.urlPrefix, transportBatching: true, }), connectToDevTools: true, @@ -105,7 +102,7 @@ function newLogin() { } const networkInterfaceTeams = Apollo.lib.createNetworkInterface({ - uri: window.MASTER_APP_API + uri: window.canvasApp.urlPrefix }); networkInterfaceTeams.use([{