aboutsummaryrefslogtreecommitdiffstats
path: root/apps/twofactor_backupcodes/src/settings.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/twofactor_backupcodes/src/settings.js')
-rw-r--r--apps/twofactor_backupcodes/src/settings.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/twofactor_backupcodes/src/settings.js b/apps/twofactor_backupcodes/src/settings.js
index 89a56ee2e5a..32eb37fa91a 100644
--- a/apps/twofactor_backupcodes/src/settings.js
+++ b/apps/twofactor_backupcodes/src/settings.js
@@ -1,13 +1,13 @@
+import { loadState } from '@nextcloud/initial-state'
import Vue from 'vue'
+
import PersonalSettings from './views/PersonalSettings'
import store from './store'
Vue.prototype.t = t
-const initialState = OCP.InitialState.loadState('twofactor_backupcodes', 'state')
-store.replaceState(
- initialState
-)
+const initialState = loadState('twofactor_backupcodes', 'state')
+store.replaceState(initialState)
const View = Vue.extend(PersonalSettings)
new View({