mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 19:53:41 -05:00
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:
parent
1e1a6f62a7
commit
75df01683b
2 changed files with 13 additions and 0 deletions
|
@ -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, [])
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue