From deca5f3b0d52436f24a068428204e426e07c1bd7 Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Fri, 26 Mar 2021 10:52:42 +0100 Subject: [PATCH] Merge pull request #3810 from overleaf/jpa-meta-tag-user-sessions [views] user/sessions: refactor window assignment into meta tag GitOrigin-RevId: a5b07ccc99021b2c72a5888b9a9d28c1c458e1e9 --- services/web/app/views/user/sessions.pug | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/services/web/app/views/user/sessions.pug b/services/web/app/views/user/sessions.pug index 632b8225ae..4ab511ae4c 100644 --- a/services/web/app/views/user/sessions.pug +++ b/services/web/app/views/user/sessions.pug @@ -1,9 +1,8 @@ extends ../layout -block head-scripts - script(type="text/javascript", nonce=scriptNonce). - window.otherSessions = !{StringHelper.stringifyJsonForScript(sessions)} +block append meta + meta(name="ol-otherSessions" data-type="json" content=sessions) block content