From 64435e574e6a44d52fcedb62ddf8b2f884509bee Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Thu, 10 Jan 2019 12:46:08 +0100 Subject: Update the git attributes Signed-off-by: Roeland Jago Douma --- apps/twofactor_backupcodes/src/settings.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/twofactor_backupcodes/src') diff --git a/apps/twofactor_backupcodes/src/settings.js b/apps/twofactor_backupcodes/src/settings.js index 00b28bfde63..ab24ed19a02 100644 --- a/apps/twofactor_backupcodes/src/settings.js +++ b/apps/twofactor_backupcodes/src/settings.js @@ -4,9 +4,9 @@ import store from './store'; Vue.prototype.t = t; -const initialStateElem = JSON.parse(atob(document.getElementById('twofactor-backupcodes-initial-state').value)); +const initialStateElem = document.getElementById('twofactor-backupcodes-initial-state'); store.replaceState( - initialStateElem + JSON.parse(atob(initialStateElem.value)) ) const View = Vue.extend(PersonalSettings) -- cgit v1.2.3