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
|
||||
html(
|
||||
lang=(currentLngCode || 'en')
|
||||
|
@ -82,12 +84,8 @@ html(
|
|||
div#dev-toolbar
|
||||
|
||||
block 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)
|
||||
|
||||
+foot-scripts
|
||||
|
||||
script(type="text/javascript", nonce=scriptNonce).
|
||||
window.addEventListener('DOMContentLoaded', function() {
|
||||
//- Look for bundle
|
||||
|
|
Loading…
Reference in a new issue