mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #18377 from overleaf/td-metrics-page-fix
Move Bootstrap and jQuery imports into metricsApp GitOrigin-RevId: 3ec1690ca60928e983211792f6c6b63548dfe62c
This commit is contained in:
parent
f78e619d87
commit
97add91248
2 changed files with 10 additions and 6 deletions
6
services/web/app/views/_mixins/foot_scripts.pug
Normal file
6
services/web/app/views/_mixins/foot_scripts.pug
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
mixin foot-scripts()
|
||||||
|
each file in entrypointScripts(entrypoint)
|
||||||
|
script(type="text/javascript", nonce=scriptNonce, src=file, defer=deferScripts)
|
||||||
|
if (settings.splitTest.devToolbar.enabled)
|
||||||
|
each file in entrypointScripts("devToolbar")
|
||||||
|
script(type="text/javascript", nonce=scriptNonce, src=file, defer=deferScripts)
|
|
@ -1,3 +1,5 @@
|
||||||
|
include ./_mixins/foot_scripts
|
||||||
|
|
||||||
doctype html
|
doctype html
|
||||||
html(
|
html(
|
||||||
lang=(currentLngCode || 'en')
|
lang=(currentLngCode || 'en')
|
||||||
|
@ -82,11 +84,7 @@ html(
|
||||||
div#dev-toolbar
|
div#dev-toolbar
|
||||||
|
|
||||||
block foot-scripts
|
block foot-scripts
|
||||||
each file in entrypointScripts(entrypoint)
|
+foot-scripts
|
||||||
script(type="text/javascript", nonce=scriptNonce, src=file, defer=deferScripts)
|
|
||||||
if (settings.splitTest.devToolbar.enabled)
|
|
||||||
each file in entrypointScripts("devToolbar")
|
|
||||||
script(type="text/javascript", nonce=scriptNonce, src=file, defer=deferScripts)
|
|
||||||
|
|
||||||
script(type="text/javascript", nonce=scriptNonce).
|
script(type="text/javascript", nonce=scriptNonce).
|
||||||
window.addEventListener('DOMContentLoaded', function() {
|
window.addEventListener('DOMContentLoaded', function() {
|
||||||
|
|
Loading…
Reference in a new issue