summaryrefslogtreecommitdiffstats
path: root/core/src/login.js
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-10-03 17:08:39 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2019-10-12 13:21:50 +0200
commitc2e882134526816e224bb408e42f4953f385c917 (patch)
tree1c28c5e3bdd08dafa3369225365a1fee7dcda88b /core/src/login.js
parent7f8ff16c76ae31b0bcb2f62cc58ed89e7f2fbb22 (diff)
downloadnextcloud-server-c2e882134526816e224bb408e42f4953f385c917.tar.gz
nextcloud-server-c2e882134526816e224bb408e42f4953f385c917.zip
Use the external initial state implementation
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/src/login.js')
-rw-r--r--core/src/login.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/src/login.js b/core/src/login.js
index 4314da7ab07..bb6426af1d4 100644
--- a/core/src/login.js
+++ b/core/src/login.js
@@ -19,8 +19,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-import Vue from 'vue'
+import { loadState } from '@nextcloud/initial-state'
import queryString from 'query-string'
+import Vue from 'vue'
// eslint-disable-next-line no-unused-vars
import OC from './OC/index' // TODO: Not needed but L10n breaks if removed
@@ -42,7 +43,7 @@ Vue.mixin(Nextcloud)
const fromStateOr = (key, orValue) => {
try {
- return OCP.InitialState.loadState('core', key)
+ return loadState('core', key)
} catch (e) {
return orValue
}