Skip to content

Commit

Permalink
fix: rc11 backward compability
Browse files Browse the repository at this point in the history
  • Loading branch information
Pooya Parsa committed Dec 29, 2017
1 parent c865a3c commit c0222e9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/templates/auth.plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ export default async function (context, inject) {
})

// Backward compability for Nuxt <= RC.11
if (!context.store.app) {
context.store.app = {
context
}
if (!context.store.app.context) {
context.store.app.context = context
}

// Fetch initial state
Expand Down

0 comments on commit c0222e9

Please sign in to comment.