Move Hotjar to the editor page (#21132)

GitOrigin-RevId: efb2c7841af76084566341b6c5f0afac9a965331
This commit is contained in:
Alf Eaton 2024-10-17 14:31:09 +01:00 committed by Copybot
parent 620f31d6a6
commit b5015b82c2
4 changed files with 2 additions and 8 deletions

View file

@ -340,6 +340,7 @@ const _ProjectController = {
'write-and-cite',
'write-and-cite-ars',
'default-visual-for-beginners',
'hotjar',
'spell-check-client',
].filter(Boolean)

View file

@ -6,7 +6,6 @@ import ErrorController from '../Errors/ErrorController.js'
import SessionManager from '../Authentication/SessionManager.js'
import { expressify } from '@overleaf/promise-utils'
import logger from '@overleaf/logger'
import SplitTestHandler from '../SplitTests/SplitTestHandler.js'
const __dirname = new URL('.', import.meta.url).pathname
@ -35,12 +34,6 @@ async function home(req, res) {
page: req.path,
})
try {
await SplitTestHandler.promises.getAssignment(req, res, 'hotjar')
} catch {
// do nothing
}
res.render('external/home/website-redesign/index')
} else {
res.redirect('/login')

View file

@ -1,5 +1,6 @@
import '../utils/webpack-public-path' // configure dynamically loaded assets (via webpack) to be downloaded from CDN
import '../infrastructure/error-reporter' // set up error reporting, including Sentry
import '../infrastructure/hotjar' // set up Hotjar
import ReactDOM from 'react-dom'
import IdeRoot from '@/features/ide-react/components/ide-root'

View file

@ -1,5 +1,4 @@
import '../../marketing'
import '../../infrastructure/hotjar' // set up Hotjar
function homepageAnimation(homepageAnimationEl) {
function createFrames(word, { buildTime, holdTime, breakTime }) {