From b6e1a936b07baa0b4fdcd8fb3bea261e61c3d922 Mon Sep 17 00:00:00 2001 From: Sachin Maheshwari <sachin.maheshwari@topcoder.com> Date: Fri, 6 Nov 2020 16:10:23 +0530 Subject: [PATCH] wipro adfs and segment.io changes --- web-assets/js/setupAuth0WithRedirect.js | 2 +- web-assets/static-pages/index.html | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/web-assets/js/setupAuth0WithRedirect.js b/web-assets/js/setupAuth0WithRedirect.js index 488997d..c82235d 100644 --- a/web-assets/js/setupAuth0WithRedirect.js +++ b/web-assets/js/setupAuth0WithRedirect.js @@ -41,7 +41,7 @@ const authSetup = function () { const appUrl = qs['appUrl'] || false; const loggerMode = "dev"; const IframeLogoutRequestType = "LOGOUT_REQUEST"; - const enterpriseCustomers = ['wipro', 'topgear', 'zurich', 'cs']; + const enterpriseCustomers = ['zurich', 'cs']; let returnAppUrl = qs['retUrl']; if (utmSource && diff --git a/web-assets/static-pages/index.html b/web-assets/static-pages/index.html index 38db79e..a60e501 100644 --- a/web-assets/static-pages/index.html +++ b/web-assets/static-pages/index.html @@ -54,5 +54,9 @@ <h1 id="page-title-heading" class="page-title-heading">loading...</h1> <script> window.onload = authSetup; </script> + <script type="text/javascript"> + !function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on"];analytics.factory=function(t){return function(){var e=Array.prototype.slice.call(arguments);e.unshift(t);analytics.push(e);return analytics}};for(var t=0;t<analytics.methods.length;t++){var e=analytics.methods[t];analytics[e]=analytics.factory(e)}analytics.load=function(t){var e=document.createElement("script");e.type="text/javascript";e.async=!0;e.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(e,n)};analytics.SNIPPET_VERSION="4.0.0"; + }}(); + </script> </body> </html>