diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-01-17 12:30:47 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-01-29 22:21:54 +0100 |
commit | f30877ea7c758346b700e4ac0f9c684a5ae99c7f (patch) | |
tree | ffbdd342c3bcc42d08d7315e78dc3075fe93a2b9 /apps/twofactor_backupcodes/src | |
parent | 139055c1ddec25465dd7644de9866cd6a1048da2 (diff) | |
download | nextcloud-server-f30877ea7c758346b700e4ac0f9c684a5ae99c7f.tar.gz nextcloud-server-f30877ea7c758346b700e4ac0f9c684a5ae99c7f.zip |
Provide initial state
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/twofactor_backupcodes/src')
-rw-r--r-- | apps/twofactor_backupcodes/src/settings.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/twofactor_backupcodes/src/settings.js b/apps/twofactor_backupcodes/src/settings.js index ab24ed19a02..0d28f1fe9c7 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 = document.getElementById('twofactor-backupcodes-initial-state'); +const initialState = OCP.InitialState.loadState('twofactor_backupcodes'); store.replaceState( - JSON.parse(atob(initialStateElem.value)) + initialState ) const View = Vue.extend(PersonalSettings) |