From d05f2626151bf546ad07eff4480af1e4d017a382 Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Fri, 26 Mar 2021 10:52:52 +0100 Subject: [PATCH] Merge pull request #3811 from overleaf/jpa-get-meta-user-sessions [frontend] clear-sessions: read otherSessions from meta tag GitOrigin-RevId: e20996cc43968b310a9d6633d32ccdabc7d51ec1 --- services/web/frontend/js/main/clear-sessions.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/web/frontend/js/main/clear-sessions.js b/services/web/frontend/js/main/clear-sessions.js index 94ba8ca2dd..676141ebe9 100644 --- a/services/web/frontend/js/main/clear-sessions.js +++ b/services/web/frontend/js/main/clear-sessions.js @@ -10,13 +10,14 @@ * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md */ import App from '../base' +import getMeta from '../utils/meta' export default App.controller('ClearSessionsController', function( $scope, $http ) { $scope.state = { - otherSessions: window.otherSessions, + otherSessions: getMeta('ol-otherSessions'), error: false, success: false }