Skip to content

Commit

Permalink
fix: opt in to import.meta.* properties
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Mar 25, 2024
1 parent aa13d1d commit bb24196
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 bb24196

Please sign in to comment.