Эх сурвалжийг харах

remove hotjar integration (#237)

mikkio 4 жил өмнө
parent
commit
a5fe3c5260

+ 0 - 15
public/index.html

@@ -19,21 +19,6 @@
       rel="stylesheet"
       href="https://eu-central-1.linodeobjects.com/atlas-assets/fonts/Optimo-PxGrotesk/PxGroteskBold-Regular.css"
     />
-    <script>
-      ;(function (h, o, t, j, a, r) {
-        h.hj =
-          h.hj ||
-          function () {
-            ;(h.hj.q = h.hj.q || []).push(arguments)
-          }
-        h._hjSettings = { hjid: 2060005, hjsv: 6 }
-        a = o.getElementsByTagName('head')[0]
-        r = o.createElement('script')
-        r.async = 1
-        r.src = t + h._hjSettings.hjid + j + h._hjSettings.hjsv
-        a.appendChild(r)
-      })(window, document, 'https://static.hotjar.com/c/hotjar-', '.js?sv=')
-    </script>
     <title>Joystream</title>
   </head>
   <body>

+ 2 - 2
src/mocking/server/index.ts

@@ -67,9 +67,9 @@ createServer({
       this.passthrough(ORION_GRAPHQL_URL)
     }
 
-    // allow Hotjar analytics requests and Sentry error reporting
+    // allow Sentry error reporting
     this.passthrough((request) => {
-      return request.url.includes('hotjar') || request.url.includes('sentry')
+      return request.url.includes('sentry')
     })
   },