From 990047725a4f6c7bbda1e7519a605b1ae1ece51e Mon Sep 17 00:00:00 2001
From: Roger Braun <roger@rogerbraun.net>
Date: Mon, 6 Mar 2017 19:57:00 +0100
Subject: [PATCH] Revert "Temporarily remove persistence."

This reverts commit 0bb1ec30d0ccba0fded1c6555d75297a6d9c83d2.
---
 src/main.js | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/main.js b/src/main.js
index b448510e..30929f0b 100644
--- a/src/main.js
+++ b/src/main.js
@@ -17,6 +17,8 @@ import configModule from './modules/config.js'
 
 import VueTimeago from 'vue-timeago'
 
+import createPersistedState from './lib/persisted_state.js'
+
 Vue.use(Vuex)
 Vue.use(VueRouter)
 Vue.use(VueTimeago, {
@@ -26,6 +28,15 @@ Vue.use(VueTimeago, {
   }
 })
 
+const persistedStateOptions = {
+  paths: [
+    'config.hideAttachments',
+    'config.hideNsfw',
+    'statuses.notifications',
+    'users.users'
+  ]
+}
+
 const store = new Vuex.Store({
   modules: {
     statuses: statusesModule,
@@ -33,6 +44,7 @@ const store = new Vuex.Store({
     api: apiModule,
     config: configModule
   },
+  plugins: [createPersistedState(persistedStateOptions)],
   strict: process.env.NODE_ENV !== 'production'
 })