Skip to content

Commit

Permalink
fix: opt in to import.meta.* properties (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored May 10, 2024
1 parent f015050 commit 072ff54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/composables/useDrupalCe/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,12 +252,12 @@ const pushMessagesToState = (messages) => {
if (!messagesArray.length) {
return
}
process.client && useDrupalCe().getMessages().value.push(...messagesArray)
import.meta.client && useDrupalCe().getMessages().value.push(...messagesArray)
}

const menuErrorHandler = (error: Record<string, any>) => {
console.error({ statusCode: error.value.statusCode, statusMessage: error.value.message, data: error.value.data })
process.client && useDrupalCe().getMessages().value.push({
import.meta.client && useDrupalCe().getMessages().value.push({
type: 'error',
message: `Menu error: ${error.value.message}.`
})
Expand Down

0 comments on commit 072ff54

Please sign in to comment.