Merge pull request #15958 from overleaf/em-writefull-script-local

Load the Writefull script when given a query param

GitOrigin-RevId: 57ce26b8692b43b7754ee77de67e9734d4a196dc
This commit is contained in:
Eric Mc Sween 2023-11-29 07:34:40 -05:00 committed by Copybot
parent 1e1a6f62a7
commit 75df01683b
2 changed files with 13 additions and 0 deletions

View file

@ -678,6 +678,17 @@ const ProjectController = {
} }
) )
}, },
writefullIntegrationAssignment(cb) {
SplitTestHandler.getAssignment(
req,
res,
'writefull-integration',
() => {
// We'll pick up the assignment from the res.locals assignment.
cb()
}
)
},
projectTags(cb) { projectTags(cb) {
if (!userId) { if (!userId) {
return cb(null, []) return cb(null, [])

View file

@ -45,3 +45,5 @@ meta(name="ol-fileActionI18n" data-type="json" content=fileActionI18n)
if (settings.overleaf != null) if (settings.overleaf != null)
meta(name="ol-overallThemes" data-type="json" content=overallThemes) meta(name="ol-overallThemes" data-type="json" content=overallThemes)
!= moduleIncludes("editor:meta", locals)