Skip to content

Commit

Permalink
Merge pull request #252 from danielroe/process-client
Browse files Browse the repository at this point in the history
  • Loading branch information
Intevel authored Mar 25, 2024
2 parents aa13d1d + bb24196 commit c6adfc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default defineNuxtPlugin(async (nuxtApp) => {
await checkIfUserExists();

nuxtApp.hook('page:start', async () => {
if (process.client) {
if (import.meta.client) {
await checkAutoRefresh();
await checkIfUserExists();
}
Expand Down

0 comments on commit c6adfc4

Please sign in to comment.