From d8b49f65da832885797db76c0268313513985711 Mon Sep 17 00:00:00 2001 From: Miguel Serrano Date: Wed, 31 Mar 2021 11:49:13 +0200 Subject: [PATCH] Merge pull request #3861 from overleaf/jpa-meta-launchpad [views] migrate the launchpad module to meta tags GitOrigin-RevId: 05295de90bf478e9b3494d854e2c57039c8f39e8 --- .../web/modules/launchpad/app/views/launchpad.pug | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/services/web/modules/launchpad/app/views/launchpad.pug b/services/web/modules/launchpad/app/views/launchpad.pug index 73d4fad29a..68bc1def04 100644 --- a/services/web/modules/launchpad/app/views/launchpad.pug +++ b/services/web/modules/launchpad/app/views/launchpad.pug @@ -1,14 +1,11 @@ extends ../../../../app/views/layout +block append meta + meta(name="ol-adminUserExists" data-type="boolean" content=adminUserExists) + meta(name="ol-ideJsPath" content=buildJsPath('ide.js')) + meta(name="ol-authMethod" content=authMethod) + block content - - script(type="text/javascript", nonce=scriptNonce). - window.data = { - adminUserExists: !{adminUserExists == true}, - ideJsPath: "!{buildJsPath('ide.js')}", - authMethod: "!{authMethod}" - } - script(type="text/javascript", nonce=scriptNonce, src=(wsUrl || '/socket.io') + '/socket.io.js') style.