Skip to content

Commit

Permalink
Fix an exception when running the auth plugin in spa mode (#167)
Browse files Browse the repository at this point in the history
When running nuxt in "spa" mode sometimes returns the exception "client.js:49 TypeError: Cannot read property 'auth' of undefined", seems like a strict mode error
  • Loading branch information
alfonsobries authored and pi0 committed May 7, 2018
1 parent 0450b57 commit 8e9f414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const routeOption = (route, key, value) => {
if (process.browser) {
// Browser
return Object.values(m.components).some(
component => component.options[key] === value
component => component.options && component.options[key] === value
)
} else {
// SSR
Expand Down

0 comments on commit 8e9f414

Please sign in to comment.