diff --git a/src/index.ts b/src/index.ts index 6666a2e..1c85bb9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -58,7 +58,7 @@ export class VuexPersistence implements PersistOptions { // @ts-ignore if (process.env.NODE_ENV === 'production') { - this.storage = options.storage || window.localStorage + this.storage = new MockStorage } else { // @ts-ignore if (process.env.MODULE_FORMAT !== 'umd') {