Merge pull request #3811 from overleaf/jpa-get-meta-user-sessions

[frontend] clear-sessions: read otherSessions from meta tag

GitOrigin-RevId: e20996cc43968b310a9d6633d32ccdabc7d51ec1
This commit is contained in:
Jakob Ackermann 2021-03-26 10:52:52 +01:00 committed by Copybot
parent deca5f3b0d
commit d05f262615

View file

@ -10,13 +10,14 @@
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
*/ */
import App from '../base' import App from '../base'
import getMeta from '../utils/meta'
export default App.controller('ClearSessionsController', function( export default App.controller('ClearSessionsController', function(
$scope, $scope,
$http $http
) { ) {
$scope.state = { $scope.state = {
otherSessions: window.otherSessions, otherSessions: getMeta('ol-otherSessions'),
error: false, error: false,
success: false success: false
} }